[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>
This commit is contained in:
committed by
Linus Torvalds
parent
ed8ece2ec8
commit
4ca644d970
@@ -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
|
||||
|
Reference in New Issue
Block a user