1
0
Fork 0
alistair23-linux/arch/mips/loongson
Huacai Chen e1fb96e064 MIPS: Loongson-3: Fix a cpu-hotplug issue in loongson3_ipi_interrupt()
setup_per_cpu_areas() only setup __per_cpu_offset[] for each possible
cpu, but loongson_sysconf.nr_cpus can be greater than possible cpus
(due to reserved_cpus_mask). So in loongson3_ipi_interrupt(), percpu
access will touch the original varible in .data..percpu section which
has been freed. Without this patch, cpu-hotplug will cause memery
corruption.

Signed-off-by: Huacai Chen <chenhc@lemote.com>
Cc: John Crispin <john@phrozen.org>
Cc: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Fuxin Zhang <zhangfx@lemote.com>
Cc: Zhangjin Wu <wuzhangjin@gmail.com>
Patchwork: http://patchwork.linux-mips.org/patch/10524/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2015-06-06 10:21:10 +02:00
..
common This is the bulk of GPIO changes for the v4.1 development 2015-04-18 08:22:10 -04:00
fuloong-2e
lemote-2f MIPS: loongson: lemote-2f: reset: make ml2f_reboot static 2014-11-24 07:45:35 +01:00
loongson-3 MIPS: Loongson-3: Fix a cpu-hotplug issue in loongson3_ipi_interrupt() 2015-06-06 10:21:10 +02:00
Kconfig MIPS: Loongson-3: Add RS780/SBX00 HPET support 2014-11-24 07:45:02 +01:00
Makefile MIPS: Loongson 3: Add IRQ init and dispatch support 2014-03-31 18:17:12 +02:00
Platform MIPS: Loongson: Rename CONFIG_LEMOTE_MACH3A to CONFIG_LOONGSON_MACH3X 2014-07-30 21:47:33 +02:00