Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1512905 > unrolled thread

[PATCH 2/2] MIPS: BMIPS: Migrate interrupts during bmips_cpu_disable

Started byFlorian Fainelli <f.fainelli@gmail.com>
First post2016-10-31 22:20 +0100
Last post2016-10-31 22:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/2] MIPS: BMIPS: Migrate interrupts during bmips_cpu_disable Florian Fainelli <f.fainelli@gmail.com> - 2016-10-31 22:20 +0100

#1512905 — [PATCH 2/2] MIPS: BMIPS: Migrate interrupts during bmips_cpu_disable

FromFlorian Fainelli <f.fainelli@gmail.com>
Date2016-10-31 22:20 +0100
Subject[PATCH 2/2] MIPS: BMIPS: Migrate interrupts during bmips_cpu_disable
Message-ID<sys9Q-7LH-21@gated-at.bofh.it>
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 <f.fainelli@gmail.com>
---
 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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web