Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9d531b8 authored by Cody P Schafer's avatar Cody P Schafer Committed by Linus Torvalds
Browse files

powerpc/mm/numa: use setup_nr_node_ids() instead of opencoding.



[sfr@canb.auug.org.au: add missing semicolon]
Signed-off-by: default avatarCody 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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d2ad351e
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -62,14 +62,11 @@ static int distance_lookup_table[MAX_NUMNODES][MAX_DISTANCE_REF_POINTS];
 */
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 */
	if (nr_node_ids == MAX_NUMNODES) {
		for_each_node_mask(node, node_possible_map)
			num = node;
		nr_node_ids = num + 1;
	}
	if (nr_node_ids == MAX_NUMNODES)
		setup_nr_node_ids();

	/* allocate the map */
	for (node = 0; node < nr_node_ids; node++)