summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-06-14 10:57:50 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-07-12 11:08:01 +1000
commita63fdc5156f2ef5690b6cf03d72b0c4917efbba7 (patch)
tree03d9b67a5d07ab9d805ea39db2f331740eba1d4c /include
parent620917de59eeb934b9f8cf35cc2d95c1ac8ed0fc (diff)
downloadlinux-3.10-a63fdc5156f2ef5690b6cf03d72b0c4917efbba7.tar.gz
linux-3.10-a63fdc5156f2ef5690b6cf03d72b0c4917efbba7.tar.bz2
linux-3.10-a63fdc5156f2ef5690b6cf03d72b0c4917efbba7.zip
mm: Move definition of MIN_MEMORY_BLOCK_SIZE to a header
The macro MIN_MEMORY_BLOCK_SIZE is currently defined twice in two .c files, and I need it in a third one to fix a powerpc bug, so let's first move it into a header Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r--include/linux/memory.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/memory.h b/include/linux/memory.h
index e1e3b2b84f8..935699b30b7 100644
--- a/include/linux/memory.h
+++ b/include/linux/memory.h
@@ -20,6 +20,8 @@
#include <linux/compiler.h>
#include <linux/mutex.h>
+#define MIN_MEMORY_BLOCK_SIZE (1 << SECTION_SIZE_BITS)
+
struct memory_block {
unsigned long start_section_nr;
unsigned long end_section_nr;