Re: [PATCHv7 08/10] mm: cma: Contiguous Memory Allocator added

2010-12-14 Thread Michal Nazarewicz
On Mon, 13 Dec 2010 12:26:49 +0100 Michal Nazarewicz m.nazarew...@samsung.com wrote: +/* Initialise CMA */ + +static struct cma_grabbed { +unsigned long start; +unsigned long size; +} cma_grabbed[8] __initdata; +static unsigned

Re: [PATCHv7 08/10] mm: cma: Contiguous Memory Allocator added

2010-12-14 Thread KAMEZAWA Hiroyuki
On Tue, 14 Dec 2010 11:23:15 +0100 Michal Nazarewicz min...@mina86.com wrote: Hmm, it seems __cm_alloc() and __cm_migrate() has no special codes for CMA. I'd like reuse this for my own contig page allocator. So, could you make these function be more generic (name) ? as

Re: [PATCHv7 08/10] mm: cma: Contiguous Memory Allocator added

2010-12-13 Thread KAMEZAWA Hiroyuki
On Mon, 13 Dec 2010 12:26:49 +0100 Michal Nazarewicz m.nazarew...@samsung.com wrote: The Contiguous Memory Allocator is a set of functions that lets one initialise a region of memory which then can be used to perform allocations of contiguous memory chunks from. The implementation uses