MIPS: add IRQF_TIMER flag for Timer Interrupts
PATCH 1/1 MIPS: add IRQF_TIMER flag for Timer Interrupts
This patch add IRQF_TIMER flag for all Timer interrupts in linux-MIPS, which will help to not disable the Timer IRQ when suspending to ensure resuming normally(d6c585a4342a2ff627a29f9aea77c5ed4cd76023) and not thread them when enabled PREEMPT_RT.
--- arch/mips/jazz/irq.c | 2 +- arch/mips/kernel/cevt-gt641xx.c | 2 +- arch/mips/kernel/cevt-r4k.c | 2 +- arch/mips/kernel/i8253.c | 2 +- arch/mips/nxp/pnx8550/common/time.c | 2 +- arch/mips/sgi-ip27/ip27-timer.c | 2 +- arch/mips/sni/time.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)
arch/mips/jazz/irq.c +1 -1
@@ -134,7 +134,7 @@ static irqreturn_t r4030_timer_interrupt(int irq, void *dev_id)static struct irqaction r4030_timer_irqaction = { .handler = r4030_timer_interrupt, - .flags =IRQF_DISABLED , + .flags =IRQF_DISABLED |IRQF_TIMER , .name ="R4030 timer" , };
arch/mips/kernel/cevt-gt641xx.c +1 -1
@@ -113,7 +113,7 @@ static irqreturn_t gt641xx_timer0_interrupt(int irq, void *dev_id)static struct irqaction gt641xx_timer0_irqaction = { .handler = gt641xx_timer0_interrupt, - .flags =IRQF_DISABLED |IRQF_PERCPU , + .flags =IRQF_DISABLED |IRQF_PERCPU |IRQF_TIMER , .name ="gt641xx_timer0" , };
arch/mips/kernel/cevt-r4k.c +1 -1
@@ -83,7 +83,7 @@ out:struct irqaction c0_compare_irqaction = { .handler = c0_compare_interrupt, - .flags =IRQF_DISABLED |IRQF_PERCPU , + .flags =IRQF_DISABLED |IRQF_PERCPU |IRQF_TIMER , .name ="timer" , };
arch/mips/kernel/i8253.c +1 -1
@@ -98,7 +98,7 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id)static struct irqaction irq0 = { .handler = timer_interrupt, - .flags =IRQF_DISABLED |IRQF_NOBALANCING , + .flags =IRQF_DISABLED |IRQF_NOBALANCING |IRQF_TIMER , .name ="timer" };
arch/mips/nxp/pnx8550/common/time.c +1 -1
@@ -59,7 +59,7 @@ static irqreturn_t pnx8xxx_timer_interrupt(int irq, void *dev_id)static struct irqaction pnx8xxx_timer_irq = { .handler = pnx8xxx_timer_interrupt, - .flags =IRQF_DISABLED |IRQF_PERCPU , + .flags =IRQF_DISABLED |IRQF_PERCPU |IRQF_TIMER , .name ="pnx8xxx_timer" , };
arch/mips/sgi-ip27/ip27-timer.c +1 -1
@@ -105,7 +105,7 @@ static irqreturn_t hub_rt_counter_handler(int irq, void *dev_id)struct irqaction hub_rt_irqaction = { .handler = hub_rt_counter_handler, - .flags =IRQF_DISABLED |IRQF_PERCPU , + .flags =IRQF_DISABLED |IRQF_PERCPU |IRQF_TIMER , .name ="hub-rt" , };
arch/mips/sni/time.c +1 -1
@@ -67,7 +67,7 @@ static irqreturn_t a20r_interrupt(int irq, void *dev_id)static struct irqaction a20r_irqaction = { .handler = a20r_interrupt, - .flags =IRQF_DISABLED |IRQF_PERCPU , + .flags =IRQF_DISABLED |IRQF_PERCPU |IRQF_TIMER , .name ="a20r-timer" , };
Signature · 1 line
1.6.2.1
Quoted 6 lines · Wu Zhangjin
This patch add
IRQF_TIMERflag for all Timer interrupts in linux-MIPS, which will help to not disable the Timer IRQ when suspending to ensure resuming normally(d6c585a4342a2ff627a29f9aea77c5ed4cd76023) and not thread them when enabledPREEMPT_RT.Signed-off-by Wu Zhangjin <[email protected]>
Quoted 6 lines · Wu Zhangjin
This patch add
IRQF_TIMERflag for all Timer interrupts in linux-MIPS, which will help to not disable the Timer IRQ when suspending to ensure resuming normally(d6c585a4342a2ff627a29f9aea77c5ed4cd76023) and not thread them when enabledPREEMPT_RT.Signed-off-by Wu Zhangjin <[email protected]>
Quoted 6 lines · Wu Zhangjin
This patch add
IRQF_TIMERflag for all Timer interrupts in linux-MIPS, which will help to not disable the Timer IRQ when suspending to ensure resuming normally(d6c585a4342a2ff627a29f9aea77c5ed4cd76023) and not thread them when enabledPREEMPT_RT.Signed-off-by Wu Zhangjin <[email protected]>
Quoted 102 lines
--- arch/mips/jazz/irq.c | 2 +- arch/mips/kernel/cevt-gt641xx.c | 2 +- arch/mips/kernel/cevt-r4k.c | 2 +- arch/mips/kernel/i8253.c | 2 +- arch/mips/nxp/pnx8550/common/time.c | 2 +- arch/mips/sgi-ip27/ip27-timer.c | 2 +- arch/mips/sni/time.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)arch/mips/jazz/irq.c +1
-1@@ -134,7 +134,7 @@ static irqreturn_t r4030_timer_interrupt(int irq, void *dev_id)static struct irqaction r4030_timer_irqaction = { .handler = r4030_timer_interrupt, - .flags =IRQF_DISABLED , + .flags =IRQF_DISABLED |IRQF_TIMER , .name ="R4030 timer" , };arch/mips/kernel/cevt-gt641xx.c +1
-1@@ -113,7 +113,7 @@ static irqreturn_t gt641xx_timer0_interrupt(int irq, void *dev_id)static struct irqaction gt641xx_timer0_irqaction = { .handler = gt641xx_timer0_interrupt, - .flags =IRQF_DISABLED |IRQF_PERCPU , + .flags =IRQF_DISABLED |IRQF_PERCPU |IRQF_TIMER , .name ="gt641xx_timer0" , };arch/mips/kernel/cevt-r4k.c +1
-1@@ -83,7 +83,7 @@ out:struct irqaction c0_compare_irqaction = { .handler = c0_compare_interrupt, - .flags =IRQF_DISABLED |IRQF_PERCPU , + .flags =IRQF_DISABLED |IRQF_PERCPU |IRQF_TIMER , .name ="timer" , };arch/mips/kernel/i8253.c +1
-1@@ -98,7 +98,7 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id)static struct irqaction irq0 = { .handler = timer_interrupt, - .flags =IRQF_DISABLED |IRQF_NOBALANCING , + .flags =IRQF_DISABLED |IRQF_NOBALANCING |IRQF_TIMER , .name ="timer" };arch/mips/nxp/pnx8550/common/time.c +1
-1@@ -59,7 +59,7 @@ static irqreturn_t pnx8xxx_timer_interrupt(int irq, void *dev_id)static struct irqaction pnx8xxx_timer_irq = { .handler = pnx8xxx_timer_interrupt, - .flags =IRQF_DISABLED |IRQF_PERCPU , + .flags =IRQF_DISABLED |IRQF_PERCPU |IRQF_TIMER , .name ="pnx8xxx_timer" , };arch/mips/sgi-ip27/ip27-timer.c +1
-1@@ -105,7 +105,7 @@ static irqreturn_t hub_rt_counter_handler(int irq, void *dev_id)struct irqaction hub_rt_irqaction = { .handler = hub_rt_counter_handler, - .flags =IRQF_DISABLED |IRQF_PERCPU , + .flags =IRQF_DISABLED |IRQF_PERCPU |IRQF_TIMER , .name ="hub-rt" , };arch/mips/sni/time.c +1
-1@@ -67,7 +67,7 @@ static irqreturn_t a20r_interrupt(int irq, void *dev_id)static struct irqaction a20r_irqaction = { .handler = a20r_interrupt, - .flags =IRQF_DISABLED |IRQF_PERCPU , + .flags =IRQF_DISABLED |IRQF_PERCPU |IRQF_TIMER , .name ="a20r-timer" , };
Quoted 6 lines · Wu Zhangjin
This patch add
IRQF_TIMERflag for all Timer interrupts in linux-MIPS, which will help to not disable the Timer IRQ when suspending to ensure resuming normally(d6c585a4342a2ff627a29f9aea77c5ed4cd76023) and not thread them when enabledPREEMPT_RT.Signed-off-by Wu Zhangjin <[email protected]>
Quoted 102 lines
--- arch/mips/jazz/irq.c | 2 +- arch/mips/kernel/cevt-gt641xx.c | 2 +- arch/mips/kernel/cevt-r4k.c | 2 +- arch/mips/kernel/i8253.c | 2 +- arch/mips/nxp/pnx8550/common/time.c | 2 +- arch/mips/sgi-ip27/ip27-timer.c | 2 +- arch/mips/sni/time.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)arch/mips/jazz/irq.c +1
-1@@ -134,7 +134,7 @@ static irqreturn_t r4030_timer_interrupt(int irq, void *dev_id)static struct irqaction r4030_timer_irqaction = { .handler = r4030_timer_interrupt, - .flags =IRQF_DISABLED , + .flags =IRQF_DISABLED |IRQF_TIMER , .name ="R4030 timer" , };arch/mips/kernel/cevt-gt641xx.c +1
-1@@ -113,7 +113,7 @@ static irqreturn_t gt641xx_timer0_interrupt(int irq, void *dev_id)static struct irqaction gt641xx_timer0_irqaction = { .handler = gt641xx_timer0_interrupt, - .flags =IRQF_DISABLED |IRQF_PERCPU , + .flags =IRQF_DISABLED |IRQF_PERCPU |IRQF_TIMER , .name ="gt641xx_timer0" , };arch/mips/kernel/cevt-r4k.c +1
-1@@ -83,7 +83,7 @@ out:struct irqaction c0_compare_irqaction = { .handler = c0_compare_interrupt, - .flags =IRQF_DISABLED |IRQF_PERCPU , + .flags =IRQF_DISABLED |IRQF_PERCPU |IRQF_TIMER , .name ="timer" , };arch/mips/kernel/i8253.c +1
-1@@ -98,7 +98,7 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id)static struct irqaction irq0 = { .handler = timer_interrupt, - .flags =IRQF_DISABLED |IRQF_NOBALANCING , + .flags =IRQF_DISABLED |IRQF_NOBALANCING |IRQF_TIMER , .name ="timer" };arch/mips/nxp/pnx8550/common/time.c +1
-1@@ -59,7 +59,7 @@ static irqreturn_t pnx8xxx_timer_interrupt(int irq, void *dev_id)static struct irqaction pnx8xxx_timer_irq = { .handler = pnx8xxx_timer_interrupt, - .flags =IRQF_DISABLED |IRQF_PERCPU , + .flags =IRQF_DISABLED |IRQF_PERCPU |IRQF_TIMER , .name ="pnx8xxx_timer" , };arch/mips/sgi-ip27/ip27-timer.c +1
-1@@ -105,7 +105,7 @@ static irqreturn_t hub_rt_counter_handler(int irq, void *dev_id)struct irqaction hub_rt_irqaction = { .handler = hub_rt_counter_handler, - .flags =IRQF_DISABLED |IRQF_PERCPU , + .flags =IRQF_DISABLED |IRQF_PERCPU |IRQF_TIMER , .name ="hub-rt" , };arch/mips/sni/time.c +1
-1@@ -67,7 +67,7 @@ static irqreturn_t a20r_interrupt(int irq, void *dev_id)static struct irqaction a20r_irqaction = { .handler = a20r_interrupt, - .flags =IRQF_DISABLED |IRQF_PERCPU , + .flags =IRQF_DISABLED |IRQF_PERCPU |IRQF_TIMER , .name ="a20r-timer" , };
Quoted 6 lines · Wu Zhangjin
This patch add
IRQF_TIMERflag for all Timer interrupts in linux-MIPS, which will help to not disable the Timer IRQ when suspending to ensure resuming normally(d6c585a4342a2ff627a29f9aea77c5ed4cd76023) and not thread them when enabledPREEMPT_RT.Signed-off-by Wu Zhangjin <[email protected]>
Quoted 9 lines
--- arch/mips/jazz/irq.c | 2 +- arch/mips/kernel/cevt-gt641xx.c | 2 +- arch/mips/kernel/cevt-r4k.c | 2 +- arch/mips/kernel/i8253.c | 2 +- arch/mips/nxp/pnx8550/common/time.c | 2 +- arch/mips/sgi-ip27/ip27-timer.c | 2 +- arch/mips/sni/time.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)
Maybe cevt-bcm1480.c, cevt-ds1287.c, cevt-sb1250.c, cevt-txx9.c and i8253.c need same fix?
---
Atsushi Nemoto
Quoted 6 lines · Wu Zhangjin
This patch add
IRQF_TIMERflag for all Timer interrupts in linux-MIPS, which will help to not disable the Timer IRQ when suspending to ensure resuming normally(d6c585a4342a2ff627a29f9aea77c5ed4cd76023) and not thread them when enabledPREEMPT_RT.Signed-off-by Wu Zhangjin <[email protected]>
Quoted 9 lines
--- arch/mips/jazz/irq.c | 2 +- arch/mips/kernel/cevt-gt641xx.c | 2 +- arch/mips/kernel/cevt-r4k.c | 2 +- arch/mips/kernel/i8253.c | 2 +- arch/mips/nxp/pnx8550/common/time.c | 2 +- arch/mips/sgi-ip27/ip27-timer.c | 2 +- arch/mips/sni/time.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)
Maybe cevt-bcm1480.c, cevt-ds1287.c, cevt-sb1250.c, cevt-txx9.c and i8253.c need same fix?
---
Atsushi Nemoto
Quoted 17 lines · Atsushi Nemoto
Quoted 6 lines · Wu Zhangjin
This patch add
IRQF_TIMERflag for all Timer interrupts in linux-MIPS, which will help to not disable the Timer IRQ when suspending to ensure resuming normally(d6c585a4342a2ff627a29f9aea77c5ed4cd76023) and not thread them when enabledPREEMPT_RT.Signed-off-by Wu Zhangjin <[email protected]>Quoted 9 lines
--- arch/mips/jazz/irq.c | 2 +- arch/mips/kernel/cevt-gt641xx.c | 2 +- arch/mips/kernel/cevt-r4k.c | 2 +- arch/mips/kernel/i8253.c | 2 +- arch/mips/nxp/pnx8550/common/time.c | 2 +- arch/mips/sgi-ip27/ip27-timer.c | 2 +- arch/mips/sni/time.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)
Quoted 3 lines
Maybe
cevt-bcm1480.c,cevt-ds1287.c,cevt-sb1250.c,cevt-txx9.candi8253.cneed same fix?
I got them via "grep timer -ur arch/mips | grep name", so, perhaps there are also some other timer interrupts missing here.
just get more via "grep Timer -ur arch/mips | grep name", "grep IRQF_ -ur arch/mips/ | grep -v TIMER | grep =", a new patch will be sent out in the next E-mail.
Regards,
Wu Zhangjin
Quoted 17 lines · Atsushi Nemoto
Quoted 6 lines · Wu Zhangjin
This patch add
IRQF_TIMERflag for all Timer interrupts in linux-MIPS, which will help to not disable the Timer IRQ when suspending to ensure resuming normally(d6c585a4342a2ff627a29f9aea77c5ed4cd76023) and not thread them when enabledPREEMPT_RT.Signed-off-by Wu Zhangjin <[email protected]>Quoted 9 lines
--- arch/mips/jazz/irq.c | 2 +- arch/mips/kernel/cevt-gt641xx.c | 2 +- arch/mips/kernel/cevt-r4k.c | 2 +- arch/mips/kernel/i8253.c | 2 +- arch/mips/nxp/pnx8550/common/time.c | 2 +- arch/mips/sgi-ip27/ip27-timer.c | 2 +- arch/mips/sni/time.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)
Quoted 3 lines
Maybe
cevt-bcm1480.c,cevt-ds1287.c,cevt-sb1250.c,cevt-txx9.candi8253.cneed same fix?
I got them via "grep timer -ur arch/mips | grep name", so, perhaps there are also some other timer interrupts missing here.
just get more via "grep Timer -ur arch/mips | grep name", "grep IRQF_ -ur arch/mips/ | grep -v TIMER | grep =", a new patch will be sent out in the next E-mail.
Regards,
Wu Zhangjin