diff options
| author | James Hogan <[email protected]> | 2016-07-13 14:12:45 +0100 |
|---|---|---|
| committer | Ralf Baechle <[email protected]> | 2016-07-29 10:19:28 +0200 |
| commit | 826e99be6ab5189dbfb096389016ffb8d20a683e (patch) | |
| tree | 54b8f17c570bbd47a7a71be9c5235062fdd2dd7c /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | a05c392032e2bb0f6d8f8cf2dd39c36b0407db72 (diff) | |
MIPS: SMP: Update cpu_foreign_map on CPU disable
When a CPU is disabled via CPU hotplug, cpu_foreign_map is not updated.
This could result in cache management SMP calls being sent to offline
CPUs instead of online siblings in the same core.
Add a call to calculate_cpu_foreign_map() in the various MIPS cpu
disable callbacks after set_cpu_online(). All cases are updated for
consistency and to keep cpu_foreign_map strictly up to date, not just
those which may support hardware multithreading.
Fixes: cccf34e9411c ("MIPS: c-r4k: Fix cache flushing for MT cores")
Signed-off-by: James Hogan <[email protected]>
Cc: Paul Burton <[email protected]>
Cc: David Daney <[email protected]>
Cc: Kevin Cernekee <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Huacai Chen <[email protected]>
Cc: Hongliang Tao <[email protected]>
Cc: Hua Yan <[email protected]>
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/13799/
Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions