mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
7c243c7168
commit
f9872caf07
2 changed files with 7 additions and 5 deletions
|
|
@ -4749,7 +4749,7 @@ void __paginginit free_area_init_node(int nid, unsigned long *zones_size,
|
|||
/*
|
||||
* Figure out the number of possible node ids.
|
||||
*/
|
||||
static void __init setup_nr_node_ids(void)
|
||||
void __init setup_nr_node_ids(void)
|
||||
{
|
||||
unsigned int node;
|
||||
unsigned int highest = 0;
|
||||
|
|
@ -4758,10 +4758,6 @@ static void __init setup_nr_node_ids(void)
|
|||
highest = node;
|
||||
nr_node_ids = highest + 1;
|
||||
}
|
||||
#else
|
||||
static inline void setup_nr_node_ids(void)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue