diff options
author | Cody P Schafer <cody@linux.vnet.ibm.com> | 2013-04-29 18:08:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 18:54:36 -0400 |
commit | f9872caf07c1c774034b8bddde7d4a3a7f4a6484 (patch) | |
tree | bfaa2883e6d2ae3945f6789b3a8935e7461ab9cb /include | |
parent | 7c243c7168dcc1bc2081fc0494923cd7cc808fb6 (diff) |
page_alloc: make setup_nr_node_ids() usable for arch init code
powerpc and x86 were opencoding copies of setup_nr_node_ids(), which
page_alloc provides but makes static. Make it avaliable to the archs in
linux/mm.h.
Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 6d7266842abd..7aa11a6736eb 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1816,5 +1816,11 @@ static inline unsigned int debug_guardpage_minorder(void) { return 0; } | |||
1816 | static inline bool page_is_guard(struct page *page) { return false; } | 1816 | static inline bool page_is_guard(struct page *page) { return false; } |
1817 | #endif /* CONFIG_DEBUG_PAGEALLOC */ | 1817 | #endif /* CONFIG_DEBUG_PAGEALLOC */ |
1818 | 1818 | ||
1819 | #if MAX_NUMNODES > 1 | ||
1820 | void __init setup_nr_node_ids(void); | ||
1821 | #else | ||
1822 | static inline void setup_nr_node_ids(void) {} | ||
1823 | #endif | ||
1824 | |||
1819 | #endif /* __KERNEL__ */ | 1825 | #endif /* __KERNEL__ */ |
1820 | #endif /* _LINUX_MM_H */ | 1826 | #endif /* _LINUX_MM_H */ |