Skip to content

Commit

Permalink
MIPS: BMIPS: Migrate interrupts during bmips_cpu_disable
Browse files Browse the repository at this point in the history
While we properly disabled the per-CPU timer interrupt, we also need to
make sure that all interrupts that can possibly have this CPU in their
smp_affinity mask also have a chance to see this interrupt migrated to a
CPU not being taken offline.

[ralf@linux-mips.org: Fix merge conflict.]

Fixes: 230b6ff ("MIPS: BMIPS: Mask off timer IRQs when hot-unplugging a CPU")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Cc: cernekee@gmail.com
Cc: jaedon.shin@gmail.com
Cc: justinpopo6@gmail.com
Cc: tglx@linutronix.de
Cc: marc.zyngier@arm.com
Cc: jason@lakedaemon.net
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14488/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Florian Fainelli authored and Ralf Baechle committed Jan 3, 2017
1 parent 6006734 commit 51ad4ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/mips/kernel/smp-bmips.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ static int bmips_cpu_disable(void)

set_cpu_online(cpu, false);
calculate_cpu_foreign_map();
irq_cpu_offline();
clear_c0_status(IE_IRQ5);

local_flush_tlb_all();
Expand Down

0 comments on commit 51ad4ac

Please sign in to comment.