Skip to contentSkip to conversation

loongson-3/hpet.c: remove IRQF_DISABLED flag

PATCH Superseded Valentin Rothberg 2 participants 3 messages Feb 27, 2015 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 loongson-3/hpet.c: remove IRQF_DISABLED flag

The IRQF_DISABLED is a NOOP and scheduled to be removed. According to Ingo Molnar (e58aa3d2d0cc01ad8d6f7f640a0670433f794922) running IRQ handlers with interrupts enabled can cause stack overflows when the interrupt line of the issuing device is still active.

---
 arch/mips/loongson/loongson-3/hpet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/loongson/loongson-3/hpet.c +1 -1
index e898d68..5c21cd3 100644
@@ -162,7 +162,7 @@ static irqreturn_t hpet_irq_handler(int irq, void *data)
 
 static struct irqaction hpet_irq = {
 	.handler = hpet_irq_handler,
-	.flags = IRQF_DISABLED | IRQF_NOBALANCING | IRQF_TIMER,
+	.flags = IRQF_NOBALANCING | IRQF_TIMER,
 	.name = "hpet",
 };
 
Signature · 1 line
1.9.1
#1 lore raw

Hello.

Quoted 2 lines · Valentin Rothberg

The IRQF_DISABLED is a NOOP and scheduled to be removed. According to Ingo Molnar (e58aa3d2d0cc01ad8d6f7f640a0670433f794922) running IRQ handlers with

Please also specify that commit's summary line in parens, like this:

According to commit e58aa3d2d0cc01ad8d6f7f640a0670433f794922 (genirq: Run irq handlers with interrupts disabled)...

Quoted 4 lines

interrupts enabled can cause stack overflows when the interrupt line of the issuing device is still active.

[...]

WBR, Sergei

#2 lore raw

PATCH v2 1/1 loongson-3/hpet.c: remove IRQF_DISABLED flag

In reply to Valentin Rothberg

The IRQF_DISABLED is a NOOP and scheduled to be removed. According to commit e58aa3d2d0cc (genirq: Run irq handlers with interrupts disabled) running IRQ handlers with interrupts enabled can cause stack overflows when the interrupt line of the issuing device is still active.

---
v2: Add commit summary of referenced commit.

---
 arch/mips/loongson/loongson-3/hpet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/loongson/loongson-3/hpet.c +1 -1
index e898d68..5c21cd3 100644
@@ -162,7 +162,7 @@ static irqreturn_t hpet_irq_handler(int irq, void *data)
 
 static struct irqaction hpet_irq = {
 	.handler = hpet_irq_handler,
-	.flags = IRQF_DISABLED | IRQF_NOBALANCING | IRQF_TIMER,
+	.flags = IRQF_NOBALANCING | IRQF_TIMER,
 	.name = "hpet",
 };
 
Signature · 1 line
1.9.1