projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb01d4c
)
powerpc/numa: use cached value of update->cpu in update_cpu_topology
author
Nishanth Aravamudan
<nacc@linux.vnet.ibm.com>
Sat, 18 Oct 2014 00:49:44 +0000
(17:49 -0700)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Tue, 28 Oct 2014 22:41:22 +0000
(09:41 +1100)
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>
arch/powerpc/mm/numa.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/mm/numa.c
b/arch/powerpc/mm/numa.c
index e5236c24dc0766112283618da9a259cf88a61735..ef45abf7319eb19533f45614dbec40efc18b68a1 100644
(file)
--- a/
arch/powerpc/mm/numa.c
+++ b/
arch/powerpc/mm/numa.c
@@
-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();
}