aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorNishanth Aravamudan <nacc@linux.vnet.ibm.com>2014-10-17 20:49:44 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2014-10-28 18:41:22 -0400
commit49f8d8c04368d2e29cd26752715367ccafec5b1d (patch)
tree6482de1589aa36f129d1c7031f5c833b8a2d092e /arch
parenteb01d4c2388ce3b5bcc120d0f72912117ed7599d (diff)
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 <nacc@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/mm/numa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c
index e5236c24dc07..ef45abf7319e 100644
--- a/arch/powerpc/mm/numa.c
+++ b/arch/powerpc/mm/numa.c
@@ -1512,8 +1512,8 @@ static int update_cpu_topology(void *data)
1512 if (cpu != update->cpu) 1512 if (cpu != update->cpu)
1513 continue; 1513 continue;
1514 1514
1515 unmap_cpu_from_node(update->cpu); 1515 unmap_cpu_from_node(cpu);
1516 map_cpu_to_node(update->cpu, update->new_nid); 1516 map_cpu_to_node(cpu, update->new_nid);
1517 vdso_getcpu_init(); 1517 vdso_getcpu_init();
1518 } 1518 }
1519 1519