X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Flinux%2Fgfp.h;h=1e49be49d3247cb74cc798aa2772a085102851a5;hb=0815f3d81d76dfbf2abcfd93a85ff0a6008fe4c0;hp=581e74b7df95e3d063bbbcaece35aafe60fad774;hpb=ea51e5040e24eefe44d70bc654a237ca1f0225b0;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git diff --git a/include/linux/gfp.h b/include/linux/gfp.h index 581e74b..1e49be4 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h @@ -391,4 +391,16 @@ static inline bool pm_suspended_storage(void) } #endif /* CONFIG_PM_SLEEP */ +#ifdef CONFIG_CMA + +/* The below functions must be run on a range from a single zone. */ +extern int alloc_contig_range(unsigned long start, unsigned long end, + unsigned migratetype); +extern void free_contig_range(unsigned long pfn, unsigned nr_pages); + +/* CMA stuff */ +extern void init_cma_reserved_pageblock(struct page *page); + +#endif + #endif /* __LINUX_GFP_H */