Skip to content

Commit 49f8d8c

Browse files
Nishanth Aravamudanmpe
authored andcommitted
powerpc/numa: use cached value of update->cpu in update_cpu_topology
There isn't any need to keep referring to update->cpu, as we've already checked cpu == update->cpu at this point. Signed-off-by: Nishanth Aravamudan <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent eb01d4c commit 49f8d8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/powerpc/mm/numa.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,8 +1512,8 @@ static int update_cpu_topology(void *data)
15121512
if (cpu != update->cpu)
15131513
continue;
15141514

1515-
unmap_cpu_from_node(update->cpu);
1516-
map_cpu_to_node(update->cpu, update->new_nid);
1515+
unmap_cpu_from_node(cpu);
1516+
map_cpu_to_node(cpu, update->new_nid);
15171517
vdso_getcpu_init();
15181518
}
15191519

0 commit comments

Comments
 (0)