[RFC][v0][PATCH 1/1] ppc64: ignore interrupts while offline

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

2 messages, 1 author, 2013-01-16 · open the first message on its own page

[RFC][v0][PATCH 1/1] ppc64: ignore interrupts while offline

From: Tiejun Chen <hidden>
Date: 2013-01-15 10:31:15

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

Signed-off-by: Tiejun Chen <redacted>
---
 arch/powerpc/kernel/irq.c |    6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
index 4f97fe3..dbca574 100644
--- a/arch/powerpc/kernel/irq.c
+++ b/arch/powerpc/kernel/irq.c
@@ -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;
 
-- 
1.7.9.5

Re: [RFC][v0][PATCH 1/1] ppc64: ignore interrupts while offline

From: tiejun.chen <hidden>
Date: 2013-01-16 03:01:18

Please ignore this to check next version.

Tiejun

On 01/15/2013 06:31 PM, Tiejun Chen wrote:
quoted hunk
With lazy interrupt, some implementations of hotplug will
get some interrupts even while offline, just ignore these.

Signed-off-by: Tiejun Chen <redacted>
---
  arch/powerpc/kernel/irq.c |    6 ++++++
  1 file changed, 6 insertions(+)
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
index 4f97fe3..dbca574 100644
--- a/arch/powerpc/kernel/irq.c
+++ b/arch/powerpc/kernel/irq.c
@@ -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;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help