Skip to content

Commit 7f9545a

Browse files
sudeep-hollawildea01
authored andcommitted
arm64: smp: remove cpu and numa topology information when hotplugging out CPU
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]>
1 parent 5ec8b59 commit 7f9545a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/arm64/kernel/smp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ int __cpu_disable(void)
279279
if (ret)
280280
return ret;
281281

282+
remove_cpu_topology(cpu);
283+
numa_remove_cpu(cpu);
284+
282285
/*
283286
* Take this CPU offline. Once we clear this, we can't return,
284287
* and we must not schedule until we're ready to give up the cpu.

0 commit comments

Comments
 (0)