Skip to content

Commit

Permalink
powerpc/numa: use cached value of update->cpu in update_cpu_topology
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nishanth Aravamudan authored and Michael Ellerman committed Oct 28, 2014
1 parent eb01d4c commit 49f8d8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/mm/numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -1512,8 +1512,8 @@ static int update_cpu_topology(void *data)
if (cpu != update->cpu)
continue;

unmap_cpu_from_node(update->cpu);
map_cpu_to_node(update->cpu, update->new_nid);
unmap_cpu_from_node(cpu);
map_cpu_to_node(cpu, update->new_nid);
vdso_getcpu_init();
}

Expand Down

0 comments on commit 49f8d8c

Please sign in to comment.