cma_declare_contiguous() allocates memory from memblock.
 cma_init_reserved_mem() initialize the memory. Then the memory is given to
    buddy allocator with migration type MIGRATE_MOVABLE. when CMA needs
those    pages, it can take it from buddy allocator.

  We are supposed to use equivalent DMA api dma_declare_contiguous().
    dma_declare_contiguous() calls cma_declare_contiguous().

http://lxr.free-electrons.com/source/arch/arm/mach-davinci/devices-da8xx.c#L833

   Regards
    Manoj Nayak
_______________________________________________
Kernelnewbies mailing list
[email protected]
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to