memblock, x86: Replace __get_free_all_memory_range() with for_each_free_mem_range()
authorTejun Heo <tj@kernel.org>
Tue, 12 Jul 2011 09:16:02 +0000 (11:16 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 14 Jul 2011 18:47:49 +0000 (11:47 -0700)
commit8a9ca34c11e1695dab7aff3cfa7780fbfe76b2f8
tree5bd341215c7e829b89d1fcb481cfff71ef81f0f5
parent64a02daacbc880bac1d6b3aeefbcd226a9341fa7
memblock, x86: Replace __get_free_all_memory_range() with for_each_free_mem_range()

__get_free_all_memory_range() walks memblock, calculates free memory
areas and fills in the specified range.  It can be easily replaced
with for_each_free_mem_range().

Convert free_low_memory_core_early() and
add_highpages_with_active_regions() to for_each_free_mem_range().
This leaves __get_free_all_memory_range() without any user.  Kill it
and related functions.

Signed-off-by: Tejun Heo <tj@kernel.org>
Link: http://lkml.kernel.org/r/1310462166-31469-10-git-send-email-tj@kernel.org
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/memblock.h
arch/x86/mm/init_32.c
arch/x86/mm/memblock.c
mm/nobootmem.c