summaryrefslogtreecommitdiffstats
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorCody P Schafer <cody@linux.vnet.ibm.com>2013-04-29 15:08:01 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-29 15:54:36 -0700
commitf9872caf07c1c774034b8bddde7d4a3a7f4a6484 (patch)
treebfaa2883e6d2ae3945f6789b3a8935e7461ab9cb /include/linux/mm.h
parent7c243c7168dcc1bc2081fc0494923cd7cc808fb6 (diff)
downloadblackbird-op-linux-f9872caf07c1c774034b8bddde7d4a3a7f4a6484.tar.gz
blackbird-op-linux-f9872caf07c1c774034b8bddde7d4a3a7f4a6484.zip
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/linux/mm.h')
-rw-r--r--include/linux/mm.h6
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; }
static inline bool page_is_guard(struct page *page) { return false; }
#endif /* CONFIG_DEBUG_PAGEALLOC */
+#if MAX_NUMNODES > 1
+void __init setup_nr_node_ids(void);
+#else
+static inline void setup_nr_node_ids(void) {}
+#endif
+
#endif /* __KERNEL__ */
#endif /* _LINUX_MM_H */
OpenPOWER on IntegriCloud