diff options
author | Dave Hansen <haveblue@us.ibm.com> | 2005-10-29 21:16:51 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-30 00:40:44 -0400 |
commit | 4ca644d970bf2542623228a4624af356d20ca267 (patch) | |
tree | 1040782e8799d5531a5ee1d5f1143e26e8781e9d /include/linux/mmzone.h | |
parent | ed8ece2ec8d3c2031b1a1a0737568bb0d49454e0 (diff) |
[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.h | 1 |
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) | |||
509 | return NULL; | 509 | return NULL; |
510 | return &mem_section[SECTION_NR_TO_ROOT(nr)][nr & SECTION_ROOT_MASK]; | 510 | return &mem_section[SECTION_NR_TO_ROOT(nr)][nr & SECTION_ROOT_MASK]; |
511 | } | 511 | } |
512 | extern int __section_nr(struct mem_section* ms); | ||
512 | 513 | ||
513 | /* | 514 | /* |
514 | * We use the lower bits of the mem_map pointer to store | 515 | * We use the lower bits of the mem_map pointer to store |