Skip to content

Commit

Permalink
arm64: smp: remove cpu and numa topology information when hotplugging…
Browse files Browse the repository at this point in the history
… 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 <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Tested-by: Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com>
Tested-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
  • Loading branch information
Sudeep Holla authored and Will Deacon committed Jul 6, 2018
1 parent 5ec8b59 commit 7f9545a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm64/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7f9545a

Please sign in to comment.