page_alloc: make setup_nr_node_ids() usable for arch init code
authorCody P Schafer <cody@linux.vnet.ibm.com>
Mon, 29 Apr 2013 22:08:01 +0000 (15:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 29 Apr 2013 22:54:36 +0000 (15:54 -0700)
commitf9872caf07c1c774034b8bddde7d4a3a7f4a6484
treebfaa2883e6d2ae3945f6789b3a8935e7461ab9cb
parent7c243c7168dcc1bc2081fc0494923cd7cc808fb6
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>
include/linux/mm.h
mm/page_alloc.c