From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034369AbcJaVR5 (ORCPT ); Mon, 31 Oct 2016 17:17:57 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33679 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1034221AbcJaVRp (ORCPT ); Mon, 31 Oct 2016 17:17:45 -0400 From: Florian Fainelli To: linux-mips@linux-mips.org Cc: ralf@linux-mips.org, cernekee@gmail.com, jaedon.shin@gmail.com, justinpopo6@gmail.com, tglx@linutronix.de, marc.zyngier@arm.com, jason@lakedaemon.net, linux-kernel@vger.kernel.org, Florian Fainelli Subject: [PATCH 2/2] MIPS: BMIPS: Migrate interrupts during bmips_cpu_disable Date: Mon, 31 Oct 2016 14:17:36 -0700 Message-Id: <1477948656-12966-3-git-send-email-f.fainelli@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477948656-12966-1-git-send-email-f.fainelli@gmail.com> References: <1477948656-12966-1-git-send-email-f.fainelli@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Fixes: 230b6ff57552 ("MIPS: BMIPS: Mask off timer IRQs when hot-unplugging a CPU") Signed-off-by: Florian Fainelli --- arch/mips/kernel/smp-bmips.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/kernel/smp-bmips.c b/arch/mips/kernel/smp-bmips.c index 6d0f1321e084..37dffda8f16b 100644 --- a/arch/mips/kernel/smp-bmips.c +++ b/arch/mips/kernel/smp-bmips.c @@ -365,6 +365,8 @@ static int bmips_cpu_disable(void) set_cpu_online(cpu, false); calculate_cpu_foreign_map(); cpumask_clear_cpu(cpu, &cpu_callin_map); + + irq_cpu_offline(); clear_c0_status(IE_IRQ5); local_flush_tlb_all(); -- 2.7.4