Thread (58 messages) 58 messages, 14 authors, 2011-07-04

Re: [PATCH 02/10] lib: genalloc: Generic allocator improvements

From: Michal Nazarewicz <hidden>
Date: 2011-06-10 17:16:50
Also in: linux-arm-kernel, linux-media, lkml

On Fri, 10 Jun 2011 14:52:17 +0200, Alan Cox [off-list ref]  
wrote:
quoted
I plan to replace it with lib/bitmap.c bitmap_* based allocator  
(similar like
it it is used by dma_declare_coherent_memory() and friends in
drivers/base/dma-coherent.c). We need something really simple for CMA  
area
management.

IMHO allocate_resource and friends a bit too heavy here, but good to  
know
that such allocator also exists.
Not sure I'd class allocate_resource as heavyweight but providing it's
using something that already exists rather than inventing yet another
allocator.
genalloc is already in the kernel and is used in a few places, so we
either let everyone use it as they see fit or we deprecate the library.
If we don't deprecate it I see no reason why CMA should not use it.

-- 
Best regards,                                         _     _
.o. | Liege of Serenely Enlightened Majesty of      o' \,=./ `o
..o | Computer Science,  Michal "mina86" Nazarewicz    (o o)
ooo +-----<email/xmpp: mnazarewicz@google.com>-----ooO--(_)--Ooo--

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help