|
@@ -547,16 +547,16 @@ static inline bool pm_suspended_storage(void)
|
|
}
|
|
}
|
|
#endif /* CONFIG_PM_SLEEP */
|
|
#endif /* CONFIG_PM_SLEEP */
|
|
|
|
|
|
-#ifdef CONFIG_CMA
|
|
|
|
-
|
|
|
|
|
|
+#if (defined(CONFIG_MEMORY_ISOLATION) && defined(CONFIG_COMPACTION)) || defined(CONFIG_CMA)
|
|
/* The below functions must be run on a range from a single zone. */
|
|
/* The below functions must be run on a range from a single zone. */
|
|
extern int alloc_contig_range(unsigned long start, unsigned long end,
|
|
extern int alloc_contig_range(unsigned long start, unsigned long end,
|
|
unsigned migratetype);
|
|
unsigned migratetype);
|
|
extern void free_contig_range(unsigned long pfn, unsigned nr_pages);
|
|
extern void free_contig_range(unsigned long pfn, unsigned nr_pages);
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
+#ifdef CONFIG_CMA
|
|
/* CMA stuff */
|
|
/* CMA stuff */
|
|
extern void init_cma_reserved_pageblock(struct page *page);
|
|
extern void init_cma_reserved_pageblock(struct page *page);
|
|
-
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#endif /* __LINUX_GFP_H */
|
|
#endif /* __LINUX_GFP_H */
|