Skip to contentSkip to conversation

mips/rt: convert timer interrupt handler to no threaded

PATCH In review Liming Wang 1 participant 3 messages Aug 25, 2011 MIPS

lore
Share & tools
lore
#0 lore raw

cover mips/rt: convert timer interrupt handler to no threaded

This patch fixes yocto bug:
[Bug 1392] qemumips: linux-yocto-rt_3.0 panics at boot

Liming Wang (1):
mips/rt: convert timer interrupt handler to no threaded

 arch/mips/kernel/i8259.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
#1 lore raw

PATCH 1/1 mips/rt: convert timer interrupt handler to no threaded

It's a known issue that preempt_rt kernel must convert the main timer interrupt handler to no threaded, otherwise kernel can't work well.

---
 arch/mips/kernel/i8259.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/mips/kernel/i8259.c +1 -0
index 5c74eb7..fb338db 100644
@@ -295,6 +295,7 @@ static void init_8259A(int auto_eoi)
 static struct irqaction irq2 = {
 	.handler = no_action,
 	.name = "cascade",
+	.flags = IRQF_NO_THREAD,
 };
 
 static struct resource pic1_io_resource = {
Signature · 1 line
1.7.0.4
#2 lore raw
Quoted 3 lines · Liming Wang

It's a known issue that preempt_rt kernel must convert the main timer interrupt handler to no threaded, otherwise kernel can't work well.

Sorry, I'm wrong, irq2 is not the timer interrupt handler, it's described as:
"IRQ2 is cascade interrupt to second interrupt controller".
I will re-send the the mail.

Liming Wang

Quoted 17 lines
---
  arch/mips/kernel/i8259.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
arch/mips/kernel/i8259.c +1 -0
index 5c74eb7..fb338db 100644
@@ -295,6 +295,7 @@ static void init_8259A(int auto_eoi)
  static struct irqaction irq2 = {
  	.handler = no_action,
  	.name = "cascade",
+	.flags = IRQF_NO_THREAD,
  };
 
  static struct resource pic1_io_resource = {