mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 15:11:16 +00:00
powerpc/mm/numa: use setup_nr_node_ids() instead of opencoding.
[sfr@canb.auug.org.au: add missing semicolon] Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
d2ad351e36
commit
f9d531b8dc
1 changed files with 3 additions and 6 deletions
|
@ -62,14 +62,11 @@ static int distance_lookup_table[MAX_NUMNODES][MAX_DISTANCE_REF_POINTS];
|
||||||
*/
|
*/
|
||||||
static void __init setup_node_to_cpumask_map(void)
|
static void __init setup_node_to_cpumask_map(void)
|
||||||
{
|
{
|
||||||
unsigned int node, num = 0;
|
unsigned int node;
|
||||||
|
|
||||||
/* setup nr_node_ids if not done yet */
|
/* setup nr_node_ids if not done yet */
|
||||||
if (nr_node_ids == MAX_NUMNODES) {
|
if (nr_node_ids == MAX_NUMNODES)
|
||||||
for_each_node_mask(node, node_possible_map)
|
setup_nr_node_ids();
|
||||||
num = node;
|
|
||||||
nr_node_ids = num + 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* allocate the map */
|
/* allocate the map */
|
||||||
for (node = 0; node < nr_node_ids; node++)
|
for (node = 0; node < nr_node_ids; node++)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue