Skip to contentSkip to conversation

ppc64: ignore interrupts while offline

RFC PATCH In review Tiejun Chen 1 participant 2 messages Jan 15, 2013 – Jan 16, 2013 PowerPC

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 ppc64: ignore interrupts while offline

With lazy interrupt, some implementations of hotplug will get some interrupts even while offline, just ignore these.

---
 arch/powerpc/kernel/irq.c |    6 ++++++
 1 file changed, 6 insertions(+)
arch/powerpc/kernel/irq.c +6 -0
index 4f97fe3..dbca574 100644
@@ -144,6 +144,12 @@ notrace unsigned int __check_irq_replay(void)
 	 */
 	unsigned char happened = local_paca->irq_happened;
 
+	/* Some implementations of hotplug will get some interrupts while
+	 * offline, just ignore these.
+	 */
+	if (cpu_is_offline(smp_processor_id()))
+		return 0;
+
 	/* Clear bit 0 which we wouldn't clear otherwise */
 	local_paca->irq_happened &= ~PACA_IRQ_HARD_DIS;
 
Signature · 1 line
1.7.9.5
#1 lore raw

Please ignore this to check next version.

Tiejun

Quoted 26 lines · Tiejun Chen

With lazy interrupt, some implementations of hotplug will get some interrupts even while offline, just ignore these.

---
  arch/powerpc/kernel/irq.c |    6 ++++++
  1 file changed, 6 insertions(+)
arch/powerpc/kernel/irq.c +6 -0
index 4f97fe3..dbca574 100644
@@ -144,6 +144,12 @@ notrace unsigned int __check_irq_replay(void)
  	 */
  	unsigned char happened = local_paca->irq_happened;
 
+	/* Some implementations of hotplug will get some interrupts while
+	 * offline, just ignore these.
+	 */
+	if (cpu_is_offline(smp_processor_id()))
+		return 0;
+
  	/* Clear bit 0 which we wouldn't clear otherwise */
  	local_paca->irq_happened &= ~PACA_IRQ_HARD_DIS;