aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYinghai Lu2010-08-25 15:39:15 -0500
committerH. Peter Anvin2010-08-27 13:08:06 -0500
commitfb74fb6db91abc3c1ceeb9d2c17b44866a12c63e (patch)
tree04ded1134ed6cae5572be992bcfd44646ee1875c /arch/x86/include/asm/memblock.h
parent7950c407c0288b223a200c1bba8198941599ca37 (diff)
downloadkernel-common-fb74fb6db91abc3c1ceeb9d2c17b44866a12c63e.tar.gz
kernel-common-fb74fb6db91abc3c1ceeb9d2c17b44866a12c63e.tar.xz
kernel-common-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 00000000000..c14219a2616
--- /dev/null
+++ b/arch/x86/include/asm/memblock.h
@@ -0,0 +1,8 @@
1#ifndef _X86_MEMBLOCK_H
2#define _X86_MEMBLOCK_H
3
4#define ARCH_DISCARD_MEMBLOCK
5
6u64 memblock_x86_find_in_range_size(u64 start, u64 *sizep, u64 align);
7
8#endif