linux/arch/mips/cavium-octeon
James Hogan 826e99be6a 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: cccf34e941 ("MIPS: c-r4k: Fix cache flushing for MT cores")
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: David Daney <david.daney@cavium.com>
Cc: Kevin Cernekee <cernekee@gmail.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Huacai Chen <chenhc@lemote.com>
Cc: Hongliang Tao <taohl@lemote.com>
Cc: Hua Yan <yanh@lemote.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/13799/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2016-07-29 10:19:28 +02:00
..
crypto
executive MIPS: Octeon: Add Octeon III CN7xxx interface detection 2016-05-13 14:01:54 +02:00
Kconfig
Makefile
Platform
cpu.c
csrc-octeon.c MIPS: OCTEON: Don't attempt to use nonexistent registers on OCTEON III models. 2016-05-13 14:01:40 +02:00
dma-octeon.c
flash_setup.c
oct_ilm.c
octeon-irq.c MIPS: Octeon: Remove forced mappings of USB interrupts. 2016-07-28 12:01:06 +02:00
octeon-memcpy.S
octeon-platform.c MIPS: Octeon: Improve USB reset code for OCTEON II. 2016-07-28 12:01:53 +02:00
octeon_boot.h
setup.c MIPS: Octeon: Changes to support readq()/writeq() usage. 2016-07-11 18:00:36 +02:00
smp.c MIPS: SMP: Update cpu_foreign_map on CPU disable 2016-07-29 10:19:28 +02:00