From: Tejun Heo Date: Thu, 8 Dec 2011 18:22:09 +0000 (-0800) Subject: memblock: Reimplement memblock allocation using reverse free area iterator X-Git-Tag: v3.3-rc1~195^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bd0b0f0da3b1ec11cbcc798eb0ef747a1184077;p=pandora-kernel.git memblock: Reimplement memblock allocation using reverse free area iterator Now that all early memory information is in memblock when enabled, we can implement reverse free area iterator and use it to implement NUMA aware allocator which is then wrapped for simpler variants instead of the confusing and inefficient mending of information in separate NUMA aware allocator. Implement for_each_free_mem_range_reverse(), use it to reimplement memblock_find_in_range_node() which in turn is used by all allocators. The visible allocator interface is inconsistent and can probably use some cleanup too. Signed-off-by: Tejun Heo Cc: Benjamin Herrenschmidt Cc: Yinghai Lu --- Reading git-diff-tree failed