projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ec8b59
)
arm64: smp: remove cpu and numa topology information when hotplugging out CPU
author
Sudeep Holla
<
[email protected]
>
Fri, 6 Jul 2018 11:02:46 +0000
(12:02 +0100)
committer
Will Deacon
<
[email protected]
>
Fri, 6 Jul 2018 12:18:18 +0000
(13:18 +0100)
We already repopulate the information on CPU hotplug-in, so we can safely
remove the CPU topology and NUMA cpumap information during CPU hotplug
out operation. This will help to provide the correct cpumask for
scheduler domains.
Cc: Catalin Marinas <
[email protected]
>
Cc: Will Deacon <
[email protected]
>
Tested-by: Ganapatrao Kulkarni <
[email protected]
>
Tested-by: Hanjun Guo <
[email protected]
>
Signed-off-by: Sudeep Holla <
[email protected]
>
Signed-off-by: Will Deacon <
[email protected]
>
arch/arm64/kernel/smp.c
patch
|
blob
|
history
diff --git
a/arch/arm64/kernel/smp.c
b/arch/arm64/kernel/smp.c
index 2a315f32fad34a1935cd93a8c0873996b7cb2a66..a44cc09059b5708992d586479ebb65c6695291b4 100644
(file)
--- a/
arch/arm64/kernel/smp.c
+++ b/
arch/arm64/kernel/smp.c
@@
-279,6
+279,9
@@
int __cpu_disable(void)
if (ret)
return ret;
+ remove_cpu_topology(cpu);
+ numa_remove_cpu(cpu);
+
/*
* Take this CPU offline. Once we clear this, we can't return,
* and we must not schedule until we're ready to give up the cpu.