summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/memblock.h
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2010-08-25 22:39:15 +0200
committerH. Peter Anvin <hpa@zytor.com>2010-08-27 20:08:06 +0200
commitfb74fb6db91abc3c1ceeb9d2c17b44866a12c63e (patch)
tree04ded1134ed6cae5572be992bcfd44646ee1875c /arch/x86/include/asm/memblock.h
parentmemblock: Add memblock_free/reserve_reserved_regions() (diff)
downloadlinux-fb74fb6db91abc3c1ceeb9d2c17b44866a12c63e.tar.xz
linux-fb74fb6db91abc3c1ceeb9d2c17b44866a12c63e.zip
x86, memblock: Add memblock_x86_find_in_range_size()
size is returned according free range. Will be used to find free ranges for early_memtest and memory corruption check Do not mess it up with lib/memblock.c yet. Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/include/asm/memblock.h')
-rw-r--r--arch/x86/include/asm/memblock.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/include/asm/memblock.h b/arch/x86/include/asm/memblock.h
new file mode 100644
index 000000000000..c14219a26168
--- /dev/null
+++ b/arch/x86/include/asm/memblock.h
@@ -0,0 +1,8 @@
+#ifndef _X86_MEMBLOCK_H
+#define _X86_MEMBLOCK_H
+
+#define ARCH_DISCARD_MEMBLOCK
+
+u64 memblock_x86_find_in_range_size(u64 start, u64 *sizep, u64 align);
+
+#endif