summaryrefslogtreecommitdiffstats
path: root/include/linux/memblock.h
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2010-07-28 15:07:21 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-08-05 12:56:27 +1000
commit5e63cf43af844ed30acc278b38b8c9bc51eba493 (patch)
tree02706d0ed24d45b94fdc7ac3a823eedd81a82d12 /include/linux/memblock.h
parent6d03b885f0926ab5b66e21307d505afcafa6dced (diff)
downloadop-kernel-dev-5e63cf43af844ed30acc278b38b8c9bc51eba493.zip
op-kernel-dev-5e63cf43af844ed30acc278b38b8c9bc51eba493.tar.gz
memblock: Expose some memblock bits for use by x86
This exposes memblock_debug and associated memblock_dbg() macro, along with memblock_can_resize so that x86 can use these when ported to use memblock Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/linux/memblock.h')
-rw-r--r--include/linux/memblock.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/memblock.h b/include/linux/memblock.h
index c8da03e..eed0f9b 100644
--- a/include/linux/memblock.h
+++ b/include/linux/memblock.h
@@ -39,6 +39,11 @@ struct memblock {
};
extern struct memblock memblock;
+extern int memblock_debug;
+extern int memblock_can_resize;
+
+#define memblock_dbg(fmt, ...) \
+ if (memblock_debug) printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
extern void __init memblock_init(void);
extern void __init memblock_analyze(void);
OpenPOWER on IntegriCloud