diff options
author | Tejun Heo | 2011-07-12 04:16:04 -0500 |
---|---|---|
committer | H. Peter Anvin | 2011-07-14 13:47:51 -0500 |
commit | 474b881bf4ee86aba55d46a4fdf293de32cba91b (patch) | |
tree | bd197e7989ec4d76445a393679ca1f18727825b6 /arch/x86/include | |
parent | 6b5d41a1b97f5529284f16170211b87fd60264c0 (diff) | |
download | kernel-common-474b881bf4ee86aba55d46a4fdf293de32cba91b.tar.gz kernel-common-474b881bf4ee86aba55d46a4fdf293de32cba91b.tar.xz kernel-common-474b881bf4ee86aba55d46a4fdf293de32cba91b.zip |
x86: Use absent_pages_in_range() instead of memblock_x86_hole_size()
memblock_x86_hole_size() calculates the total size of holes in a given
range according to memblock and is used by numa emulation code and
numa_meminfo_cover_memory().
Since conversion to MEMBLOCK_NODE_MAP, absent_pages_in_range() also
uses memblock and gives the same result. This patch replaces
memblock_x86_hole_size() uses with absent_pages_in_range(). After the
conversion the x86 function doesn't have any user left and is killed.
Signed-off-by: Tejun Heo <tj@kernel.org>
Link: http://lkml.kernel.org/r/1310462166-31469-12-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>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/memblock.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/include/asm/memblock.h b/arch/x86/include/asm/memblock.h index a0cc7d66ac5..17a882e90ad 100644 --- a/arch/x86/include/asm/memblock.h +++ b/arch/x86/include/asm/memblock.h | |||
@@ -6,6 +6,4 @@ | |||
6 | void memblock_x86_reserve_range(u64 start, u64 end, char *name); | 6 | void memblock_x86_reserve_range(u64 start, u64 end, char *name); |
7 | void memblock_x86_free_range(u64 start, u64 end); | 7 | void memblock_x86_free_range(u64 start, u64 end); |
8 | 8 | ||
9 | u64 memblock_x86_hole_size(u64 start, u64 end); | ||
10 | |||
11 | #endif | 9 | #endif |