summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/memblock.h
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2010-08-25 20:39:15 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2010-08-27 18:08:06 (GMT)
commitfb74fb6db91abc3c1ceeb9d2c17b44866a12c63e (patch)
tree04ded1134ed6cae5572be992bcfd44646ee1875c /arch/x86/include/asm/memblock.h
parent7950c407c0288b223a200c1bba8198941599ca37 (diff)
downloadlinux-fsl-qoriq-fb74fb6db91abc3c1ceeb9d2c17b44866a12c63e.tar.xz
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 0000000..c14219a
--- /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