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 /mm | |
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 'mm')
-rw-r--r-- | mm/page_alloc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 5a234b64f3ac..98cbdf6e5532 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -4749,7 +4749,7 @@ void __paginginit free_area_init_node(int nid, unsigned long *zones_size, | |||
4749 | /* | 4749 | /* |
4750 | * Figure out the number of possible node ids. | 4750 | * Figure out the number of possible node ids. |
4751 | */ | 4751 | */ |
4752 | static void __init setup_nr_node_ids(void) | 4752 | void __init setup_nr_node_ids(void) |
4753 | { | 4753 | { |
4754 | unsigned int node; | 4754 | unsigned int node; |
4755 | unsigned int highest = 0; | 4755 | unsigned int highest = 0; |
@@ -4758,10 +4758,6 @@ static void __init setup_nr_node_ids(void) | |||
4758 | highest = node; | 4758 | highest = node; |
4759 | nr_node_ids = highest + 1; | 4759 | nr_node_ids = highest + 1; |
4760 | } | 4760 | } |
4761 | #else | ||
4762 | static inline void setup_nr_node_ids(void) | ||
4763 | { | ||
4764 | } | ||
4765 | #endif | 4761 | #endif |
4766 | 4762 | ||
4767 | /** | 4763 | /** |