summaryrefslogtreecommitdiffstats
path: root/include/linux/mmzone.h
diff options
context:
space:
mode:
authorDave Hansen2005-10-30 02:16:51 +0100
committerLinus Torvalds2005-10-30 05:40:44 +0100
commit4ca644d970bf2542623228a4624af356d20ca267 (patch)
tree1040782e8799d5531a5ee1d5f1143e26e8781e9d /include/linux/mmzone.h
parent[PATCH] memory hotplug prep: break out zone initialization (diff)
downloadkernel-qcow2-linux-4ca644d970bf2542623228a4624af356d20ca267.tar.gz
kernel-qcow2-linux-4ca644d970bf2542623228a4624af356d20ca267.tar.xz
kernel-qcow2-linux-4ca644d970bf2542623228a4624af356d20ca267.zip
[PATCH] memory hotplug prep: __section_nr helper
A little helper that we use in the hotplug code. Signed-off-by: Dave Hansen <haveblue@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r--include/linux/mmzone.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 7519eb4191e7..4674145bb63d 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -509,6 +509,7 @@ static inline struct mem_section *__nr_to_section(unsigned long nr)
return NULL;
return &mem_section[SECTION_NR_TO_ROOT(nr)][nr & SECTION_ROOT_MASK];
}
+extern int __section_nr(struct mem_section* ms);
/*
* We use the lower bits of the mem_map pointer to store