All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 0/7] Add IRQF_IRQPOLL flag to allow irqpoll
@ 2007-03-27 20:22 Bernhard Walle
  2007-03-27 20:22 ` [patch 1/7] Add IRQF_IRQPOLL flag (common code) Bernhard Walle
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Bernhard Walle @ 2007-03-27 20:22 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

irqpoll is broken on some architectures that don't use the IRQ 0 for the timer
interrupt like IA64. This patch adds a IRQF_IRQPOLL flag.

Each architecture is handled in a separate pach. As I left the irq == 0 as
condition, this should not break existing architectures that use timer_irq == 0
and that I did't address with that patch (because I don't know).


Signed-off-by: Bernhard Walle <bwalle@suse.de>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [patch 1/7] Add IRQF_IRQPOLL flag (common code)
  2007-03-27 20:22 [patch 0/7] Add IRQF_IRQPOLL flag to allow irqpoll Bernhard Walle
@ 2007-03-27 20:22 ` Bernhard Walle
  2007-03-27 20:22 ` [patch 2/7] Add IRQF_IRQPOLL flag on x86_64 Bernhard Walle
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: Bernhard Walle @ 2007-03-27 20:22 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, Thomas Gleixner

[-- Attachment #1: add-irqf_irqpoll-flag.patch --]
[-- Type: text/plain, Size: 2734 bytes --]

This patch adds a IRQF_IRQPOLL flag that the interrupt registration code
could use for the interrupt it wants to use for IRQ polling.

Because this must not be the timer interrupt, an additional flag was added
instead of re-using the IRQF_TIMER constant. Until all architectures will have
an IRQF_IRQPOLL interrupt, irq == 0 will stay as alternative as it should
not break anything.

Also, note_interrupt() is called on CPU-specific interrupts to be used as
interrupt source for IRQ polling.


Signed-off-by: Bernhard Walle <bwalle@suse.de>
---
 include/linux/interrupt.h |    4 ++++
 kernel/irq/handle.c       |    2 ++
 kernel/irq/spurious.c     |    4 +++-
 3 files changed, 9 insertions(+), 1 deletion(-)

Index: linux-2.6.21-rc5-mm2/include/linux/interrupt.h
===================================================================
--- linux-2.6.21-rc5-mm2.orig/include/linux/interrupt.h
+++ linux-2.6.21-rc5-mm2/include/linux/interrupt.h
@@ -44,6 +44,9 @@
  * IRQF_TIMER - Flag to mark this interrupt as timer interrupt
  * IRQF_PERCPU - Interrupt is per cpu
  * IRQF_NOBALANCING - Flag to exclude this interrupt from irq balancing
+ * IRQF_IRQPOLL - Interrupt is used for polling (only the interrupt that is
+ *                registered first in an shared interrupt is considered for
+ *                performance reasons)
  */
 #define IRQF_DISABLED		0x00000020
 #define IRQF_SAMPLE_RANDOM	0x00000040
@@ -52,6 +55,7 @@
 #define IRQF_TIMER		0x00000200
 #define IRQF_PERCPU		0x00000400
 #define IRQF_NOBALANCING	0x00000800
+#define IRQF_IRQPOLL		0x00001000
 
 /*
  * Migration helpers. Scheduled for removal in 1/2007
Index: linux-2.6.21-rc5-mm2/kernel/irq/handle.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/kernel/irq/handle.c
+++ linux-2.6.21-rc5-mm2/kernel/irq/handle.c
@@ -180,6 +180,8 @@ fastcall unsigned int __do_IRQ(unsigned 
 		if (desc->chip->ack)
 			desc->chip->ack(irq);
 		action_ret = handle_IRQ_event(irq, desc->action);
+		if (!noirqdebug)
+			note_interrupt(irq, desc, action_ret);
 		desc->chip->end(irq);
 		return 1;
 	}
Index: linux-2.6.21-rc5-mm2/kernel/irq/spurious.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/kernel/irq/spurious.c
+++ linux-2.6.21-rc5-mm2/kernel/irq/spurious.c
@@ -146,7 +146,9 @@ void note_interrupt(unsigned int irq, st
 
 	if (unlikely(irqfixup)) {
 		/* Don't punish working computers */
-		if ((irqfixup == 2 && irq == 0) || action_ret == IRQ_NONE) {
+		if ((irqfixup == 2 && ((irq == 0) ||
+				(desc->action->flags & IRQF_IRQPOLL))) ||
+				action_ret == IRQ_NONE) {
 			int ok = misrouted_irq(irq);
 			if (action_ret == IRQ_NONE)
 				desc->irqs_unhandled -= ok;

-- 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [patch 2/7] Add IRQF_IRQPOLL flag on x86_64
  2007-03-27 20:22 [patch 0/7] Add IRQF_IRQPOLL flag to allow irqpoll Bernhard Walle
  2007-03-27 20:22 ` [patch 1/7] Add IRQF_IRQPOLL flag (common code) Bernhard Walle
@ 2007-03-27 20:22 ` Bernhard Walle
  2007-03-27 20:22 ` [patch 3/7] Add IRQF_IRQPOLL flag on i386 Bernhard Walle
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: Bernhard Walle @ 2007-03-27 20:22 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, Thomas Gleixner, Andi Kleen

[-- Attachment #1: add-irqf_irqpoll-flag-on-x86_64.patch --]
[-- Type: text/plain, Size: 776 bytes --]

Add IRQF_IRQPOLL for the timer interrupt on x86_64.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
Cc: Andi Kleen <ak@suse.de>
---
 arch/x86_64/kernel/time.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Index: linux-2.6.21-rc5-mm2/arch/x86_64/kernel/time.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/x86_64/kernel/time.c
+++ linux-2.6.21-rc5-mm2/arch/x86_64/kernel/time.c
@@ -317,7 +317,10 @@ void __init stop_timer_interrupt(void)
 }
 
 static struct irqaction irq0 = {
-	timer_interrupt, IRQF_DISABLED, CPU_MASK_NONE, "timer", NULL, NULL
+	.handler	= timer_interrupt,
+	.flags		= IRQF_DISABLED | IRQF_IRQPOLL,
+	.mask		= CPU_MASK_NONE,
+	.name 		= "timer"
 };
 
 void __init time_init(void)

-- 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [patch 3/7] Add IRQF_IRQPOLL flag on i386
  2007-03-27 20:22 [patch 0/7] Add IRQF_IRQPOLL flag to allow irqpoll Bernhard Walle
  2007-03-27 20:22 ` [patch 1/7] Add IRQF_IRQPOLL flag (common code) Bernhard Walle
  2007-03-27 20:22 ` [patch 2/7] Add IRQF_IRQPOLL flag on x86_64 Bernhard Walle
@ 2007-03-27 20:22 ` Bernhard Walle
  2007-03-27 20:22   ` Bernhard Walle
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: Bernhard Walle @ 2007-03-27 20:22 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, Thomas Gleixner, Andi Kleen

[-- Attachment #1: add-irqf_irqpoll-flag-on-i386.patch --]
[-- Type: text/plain, Size: 1882 bytes --]

Add IRQF_IRQPOLL to timer interrupts on i386.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
Cc: Andi Kleen <ak@suse.de>
---
 arch/i386/mach-default/setup.c |    2 +-
 arch/i386/mach-visws/setup.c   |    2 +-
 arch/i386/mach-voyager/setup.c |    7 ++++++-
 3 files changed, 8 insertions(+), 3 deletions(-)

Index: linux-2.6.21-rc5-mm2/arch/i386/mach-default/setup.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/i386/mach-default/setup.c
+++ linux-2.6.21-rc5-mm2/arch/i386/mach-default/setup.c
@@ -81,7 +81,7 @@ void __init trap_init_hook(void)
 
 static struct irqaction irq0  = {
 	.handler = timer_interrupt,
-	.flags = IRQF_DISABLED | IRQF_NOBALANCING,
+	.flags = IRQF_DISABLED | IRQF_NOBALANCING | IRQF_IRQPOLL,
 	.mask = CPU_MASK_NONE,
 	.name = "timer"
 };
Index: linux-2.6.21-rc5-mm2/arch/i386/mach-visws/setup.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/i386/mach-visws/setup.c
+++ linux-2.6.21-rc5-mm2/arch/i386/mach-visws/setup.c
@@ -116,7 +116,7 @@ void __init pre_setup_arch_hook()
 
 static struct irqaction irq0 = {
 	.handler =	timer_interrupt,
-	.flags =	IRQF_DISABLED,
+	.flags =	IRQF_DISABLED | IRQF_IRQPOLL,
 	.name =		"timer",
 };
 
Index: linux-2.6.21-rc5-mm2/arch/i386/mach-voyager/setup.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/i386/mach-voyager/setup.c
+++ linux-2.6.21-rc5-mm2/arch/i386/mach-voyager/setup.c
@@ -40,7 +40,12 @@ void __init trap_init_hook(void)
 {
 }
 
-static struct irqaction irq0  = { timer_interrupt, IRQF_DISABLED, CPU_MASK_NONE, "timer", NULL, NULL};
+static struct irqaction irq0  = {
+	.handler	= timer_interrupt,
+	.flags		= IRQF_DISABLED | IRQF_IRQPOLL,
+	.mask		= CPU_MASK_NONE,
+	.name 		= "timer"
+};
 
 void __init time_init_hook(void)
 {

-- 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [patch 4/7] Add IRQF_IRQPOLL flag on IA64
  2007-03-27 20:22 [patch 0/7] Add IRQF_IRQPOLL flag to allow irqpoll Bernhard Walle
@ 2007-03-27 20:22   ` Bernhard Walle
  2007-03-27 20:22 ` [patch 2/7] Add IRQF_IRQPOLL flag on x86_64 Bernhard Walle
                     ` (5 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: Bernhard Walle @ 2007-03-27 20:22 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, linux-ia64, Thomas Gleixner, Ingo Molnar

[-- Attachment #1: add-irqf_irqpoll-flag-on-ia64.patch --]
[-- Type: text/plain, Size: 623 bytes --]

Add IRQF_IRQPOLL for the timer interrupt on IA64.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
---
 arch/ia64/kernel/time.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.21-rc5-mm2/arch/ia64/kernel/time.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/ia64/kernel/time.c
+++ linux-2.6.21-rc5-mm2/arch/ia64/kernel/time.c
@@ -235,7 +235,7 @@ ia64_init_itm (void)
 
 static struct irqaction timer_irqaction = {
 	.handler =	timer_interrupt,
-	.flags =	IRQF_DISABLED,
+	.flags =	IRQF_DISABLED | IRQF_IRQPOLL,
 	.name =		"timer"
 };
 

-- 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [patch 4/7] Add IRQF_IRQPOLL flag on IA64
@ 2007-03-27 20:22   ` Bernhard Walle
  0 siblings, 0 replies; 9+ messages in thread
From: Bernhard Walle @ 2007-03-27 20:22 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, linux-ia64, Thomas Gleixner, Ingo Molnar

Add IRQF_IRQPOLL for the timer interrupt on IA64.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
---
 arch/ia64/kernel/time.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.21-rc5-mm2/arch/ia64/kernel/time.c
=================================--- linux-2.6.21-rc5-mm2.orig/arch/ia64/kernel/time.c
+++ linux-2.6.21-rc5-mm2/arch/ia64/kernel/time.c
@@ -235,7 +235,7 @@ ia64_init_itm (void)
 
 static struct irqaction timer_irqaction = {
 	.handler =	timer_interrupt,
-	.flags =	IRQF_DISABLED,
+	.flags =	IRQF_DISABLED | IRQF_IRQPOLL,
 	.name =		"timer"
 };
 

-- 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [patch 5/7] Add IRQF_IRQPOLL flag on sh
  2007-03-27 20:22 [patch 0/7] Add IRQF_IRQPOLL flag to allow irqpoll Bernhard Walle
                   ` (3 preceding siblings ...)
  2007-03-27 20:22   ` Bernhard Walle
@ 2007-03-27 20:22 ` Bernhard Walle
  2007-03-27 20:22 ` [patch 6/7] Add IRQF_IRQPOLL flag on parisc Bernhard Walle
  2007-03-27 20:22 ` [patch 7/7] Add IRQF_IRQPOLL flag on arm Bernhard Walle
  6 siblings, 0 replies; 9+ messages in thread
From: Bernhard Walle @ 2007-03-27 20:22 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, Thomas Gleixner

[-- Attachment #1: add-irqf_irqpoll-flag-on-sh.patch --]
[-- Type: text/plain, Size: 1894 bytes --]

Add IRQF_IRQPOLL on each timer interrupt on SH2.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
---
 arch/sh/kernel/timers/timer-cmt.c  |    2 +-
 arch/sh/kernel/timers/timer-mtu2.c |    2 +-
 arch/sh/kernel/timers/timer-tmu.c  |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Index: linux-2.6.21-rc5-mm2/arch/sh/kernel/timers/timer-cmt.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/sh/kernel/timers/timer-cmt.c
+++ linux-2.6.21-rc5-mm2/arch/sh/kernel/timers/timer-cmt.c
@@ -115,7 +115,7 @@ static irqreturn_t cmt_timer_interrupt(i
 static struct irqaction cmt_irq = {
 	.name		= "timer",
 	.handler	= cmt_timer_interrupt,
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.mask		= CPU_MASK_NONE,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/sh/kernel/timers/timer-mtu2.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/sh/kernel/timers/timer-mtu2.c
+++ linux-2.6.21-rc5-mm2/arch/sh/kernel/timers/timer-mtu2.c
@@ -110,7 +110,7 @@ static irqreturn_t mtu2_timer_interrupt(
 static struct irqaction mtu2_irq = {
 	.name		= "timer",
 	.handler	= mtu2_timer_interrupt,
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.mask		= CPU_MASK_NONE,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/sh/kernel/timers/timer-tmu.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/sh/kernel/timers/timer-tmu.c
+++ linux-2.6.21-rc5-mm2/arch/sh/kernel/timers/timer-tmu.c
@@ -99,7 +99,7 @@ static irqreturn_t tmu_timer_interrupt(i
 static struct irqaction tmu_irq = {
 	.name		= "timer",
 	.handler	= tmu_timer_interrupt,
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.mask		= CPU_MASK_NONE,
 };
 

-- 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [patch 6/7] Add IRQF_IRQPOLL flag on parisc
  2007-03-27 20:22 [patch 0/7] Add IRQF_IRQPOLL flag to allow irqpoll Bernhard Walle
                   ` (4 preceding siblings ...)
  2007-03-27 20:22 ` [patch 5/7] Add IRQF_IRQPOLL flag on sh Bernhard Walle
@ 2007-03-27 20:22 ` Bernhard Walle
  2007-03-27 20:22 ` [patch 7/7] Add IRQF_IRQPOLL flag on arm Bernhard Walle
  6 siblings, 0 replies; 9+ messages in thread
From: Bernhard Walle @ 2007-03-27 20:22 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, Thomas Gleixner

[-- Attachment #1: add-irqf_irqpoll-flag-on-parisc.patch --]
[-- Type: text/plain, Size: 716 bytes --]

Add IRQF_IRQPOLL to the timer interrupt on parisc.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
---
 arch/parisc/kernel/irq.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.21-rc5-mm2/arch/parisc/kernel/irq.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/parisc/kernel/irq.c
+++ linux-2.6.21-rc5-mm2/arch/parisc/kernel/irq.c
@@ -388,7 +388,7 @@ void do_cpu_irq_mask(struct pt_regs *reg
 static struct irqaction timer_action = {
 	.handler = timer_interrupt,
 	.name = "timer",
-	.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_PERCPU,
+	.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_PERCPU | IRQF_IRQPOLL,
 };
 
 #ifdef CONFIG_SMP

-- 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [patch 7/7] Add IRQF_IRQPOLL flag on arm
  2007-03-27 20:22 [patch 0/7] Add IRQF_IRQPOLL flag to allow irqpoll Bernhard Walle
                   ` (5 preceding siblings ...)
  2007-03-27 20:22 ` [patch 6/7] Add IRQF_IRQPOLL flag on parisc Bernhard Walle
@ 2007-03-27 20:22 ` Bernhard Walle
  6 siblings, 0 replies; 9+ messages in thread
From: Bernhard Walle @ 2007-03-27 20:22 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, Thomas Gleixner

[-- Attachment #1: add-irqf_irqpoll-flag-on-arm.patch --]
[-- Type: text/plain, Size: 18068 bytes --]

Add IRQF_IRQPOLL for each timer interrupt.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
---
 arch/arm/mach-aaec2000/core.c            |    2 +-
 arch/arm/mach-at91/at91rm9200_time.c     |    2 +-
 arch/arm/mach-at91/at91sam926x_time.c    |    2 +-
 arch/arm/mach-clps711x/time.c            |    2 +-
 arch/arm/mach-clps7500/core.c            |    2 +-
 arch/arm/mach-ebsa110/core.c             |    2 +-
 arch/arm/mach-ep93xx/core.c              |    2 +-
 arch/arm/mach-footbridge/dc21285-timer.c |    2 +-
 arch/arm/mach-footbridge/isa-timer.c     |    2 +-
 arch/arm/mach-h720x/cpu-h7201.c          |    2 +-
 arch/arm/mach-h720x/cpu-h7202.c          |    2 +-
 arch/arm/mach-imx/time.c                 |    2 +-
 arch/arm/mach-integrator/core.c          |    2 +-
 arch/arm/mach-ixp2000/core.c             |    2 +-
 arch/arm/mach-ixp23xx/core.c             |    2 +-
 arch/arm/mach-ixp4xx/common.c            |    2 +-
 arch/arm/mach-lh7a40x/time.c             |    2 +-
 arch/arm/mach-netx/time.c                |    2 +-
 arch/arm/mach-ns9xxx/time.c              |    2 +-
 arch/arm/mach-omap1/time.c               |    2 +-
 arch/arm/mach-omap2/timer-gp.c           |    2 +-
 arch/arm/mach-pnx4008/time.c             |    2 +-
 arch/arm/mach-pxa/time.c                 |    2 +-
 arch/arm/mach-realview/core.c            |    2 +-
 arch/arm/mach-sa1100/h3600.c             |    2 +-
 arch/arm/mach-sa1100/time.c              |    2 +-
 arch/arm/mach-shark/core.c               |    2 +-
 arch/arm/mach-versatile/core.c           |    2 +-
 arch/arm/plat-iop/time.c                 |    2 +-
 arch/arm/plat-omap/timer32k.c            |    2 +-
 arch/arm/plat-s3c24xx/time.c             |    2 +-
 31 files changed, 31 insertions(+), 31 deletions(-)

Index: linux-2.6.21-rc5-mm2/arch/arm/mach-aaec2000/core.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-aaec2000/core.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-aaec2000/core.c
@@ -142,7 +142,7 @@ aaec2000_timer_interrupt(int irq, void *
 
 static struct irqaction aaec2000_timer_irq = {
 	.name		= "AAEC-2000 Timer Tick",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= aaec2000_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-at91/at91rm9200_time.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-at91/at91rm9200_time.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-at91/at91rm9200_time.c
@@ -87,7 +87,7 @@ static irqreturn_t at91rm9200_timer_inte
 
 static struct irqaction at91rm9200_timer_irq = {
 	.name		= "at91_tick",
-	.flags		= IRQF_SHARED | IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_SHARED | IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= at91rm9200_timer_interrupt
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-at91/at91sam926x_time.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-at91/at91sam926x_time.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-at91/at91sam926x_time.c
@@ -66,7 +66,7 @@ static irqreturn_t at91sam926x_timer_int
 
 static struct irqaction at91sam926x_timer_irq = {
 	.name		= "at91_tick",
-	.flags		= IRQF_SHARED | IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_SHARED | IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= at91sam926x_timer_interrupt
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-clps711x/time.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-clps711x/time.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-clps711x/time.c
@@ -58,7 +58,7 @@ p720t_timer_interrupt(int irq, void *dev
 
 static struct irqaction clps711x_timer_irq = {
 	.name		= "CLPS711x Timer Tick",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= p720t_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-clps7500/core.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-clps7500/core.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-clps7500/core.c
@@ -316,7 +316,7 @@ clps7500_timer_interrupt(int irq, void *
 
 static struct irqaction clps7500_timer_irq = {
 	.name		= "CLPS7500 Timer Tick",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= clps7500_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-ebsa110/core.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-ebsa110/core.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-ebsa110/core.c
@@ -199,7 +199,7 @@ ebsa110_timer_interrupt(int irq, void *d
 
 static struct irqaction ebsa110_timer_irq = {
 	.name		= "EBSA110 Timer Tick",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= ebsa110_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-ep93xx/core.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-ep93xx/core.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-ep93xx/core.c
@@ -116,7 +116,7 @@ static int ep93xx_timer_interrupt(int ir
 
 static struct irqaction ep93xx_timer_irq = {
 	.name		= "ep93xx timer",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= ep93xx_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-footbridge/dc21285-timer.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-footbridge/dc21285-timer.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-footbridge/dc21285-timer.c
@@ -44,7 +44,7 @@ timer1_interrupt(int irq, void *dev_id)
 static struct irqaction footbridge_timer_irq = {
 	.name		= "Timer1 timer tick",
 	.handler	= timer1_interrupt,
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 };
 
 /*
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-footbridge/isa-timer.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-footbridge/isa-timer.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-footbridge/isa-timer.c
@@ -73,7 +73,7 @@ isa_timer_interrupt(int irq, void *dev_i
 static struct irqaction isa_timer_irq = {
 	.name		= "ISA timer tick",
 	.handler	= isa_timer_interrupt,
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 };
 
 static void __init isa_timer_init(void)
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-h720x/cpu-h7201.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-h720x/cpu-h7201.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-h720x/cpu-h7201.c
@@ -41,7 +41,7 @@ h7201_timer_interrupt(int irq, void *dev
 
 static struct irqaction h7201_timer_irq = {
 	.name		= "h7201 Timer Tick",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= h7201_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-h720x/cpu-h7202.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-h720x/cpu-h7202.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-h720x/cpu-h7202.c
@@ -170,7 +170,7 @@ static struct irq_chip h7202_timerx_chip
 
 static struct irqaction h7202_timer_irq = {
 	.name		= "h7202 Timer Tick",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= h7202_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-imx/time.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-imx/time.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-imx/time.c
@@ -56,7 +56,7 @@ imx_timer_interrupt(int irq, void *dev_i
 
 static struct irqaction imx_timer_irq = {
 	.name		= "i.MX Timer Tick",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= imx_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-integrator/core.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-integrator/core.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-integrator/core.c
@@ -282,7 +282,7 @@ integrator_timer_interrupt(int irq, void
 
 static struct irqaction integrator_timer_irq = {
 	.name		= "Integrator Timer Tick",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= integrator_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-ixp2000/core.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-ixp2000/core.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-ixp2000/core.c
@@ -224,7 +224,7 @@ static int ixp2000_timer_interrupt(int i
 
 static struct irqaction ixp2000_timer_irq = {
 	.name		= "IXP2000 Timer Tick",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= ixp2000_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-ixp23xx/core.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-ixp23xx/core.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-ixp23xx/core.c
@@ -363,7 +363,7 @@ ixp23xx_timer_interrupt(int irq, void *d
 static struct irqaction ixp23xx_timer_irq = {
 	.name		= "IXP23xx Timer Tick",
 	.handler	= ixp23xx_timer_interrupt,
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 };
 
 void __init ixp23xx_init_timer(void)
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-ixp4xx/common.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-ixp4xx/common.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-ixp4xx/common.c
@@ -265,7 +265,7 @@ static irqreturn_t ixp4xx_timer_interrup
 
 static struct irqaction ixp4xx_timer_irq = {
 	.name		= "IXP4xx Timer Tick",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= ixp4xx_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-lh7a40x/time.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-lh7a40x/time.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-lh7a40x/time.c
@@ -53,7 +53,7 @@ lh7a40x_timer_interrupt(int irq, void *d
 
 static struct irqaction lh7a40x_timer_irq = {
 	.name		= "LHA740x Timer Tick",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= lh7a40x_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-netx/time.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-netx/time.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-netx/time.c
@@ -47,7 +47,7 @@ netx_timer_interrupt(int irq, void *dev_
 
 static struct irqaction netx_timer_irq = {
 	.name           = "NetX Timer Tick",
-	.flags          = IRQF_DISABLED | IRQF_TIMER,
+	.flags          = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler        = netx_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-ns9xxx/time.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-ns9xxx/time.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-ns9xxx/time.c
@@ -53,7 +53,7 @@ static unsigned long ns9xxx_timer_gettim
 
 static struct irqaction ns9xxx_timer_irq = {
 	.name = "NS9xxx Timer Tick",
-	.flags = IRQF_DISABLED | IRQF_TIMER,
+	.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler = ns9xxx_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-omap1/time.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-omap1/time.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-omap1/time.c
@@ -176,7 +176,7 @@ static irqreturn_t omap_mpu_timer_interr
 
 static struct irqaction omap_mpu_timer_irq = {
 	.name		= "mpu timer",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= omap_mpu_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-omap2/timer-gp.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-omap2/timer-gp.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-omap2/timer-gp.c
@@ -52,7 +52,7 @@ static irqreturn_t omap2_gp_timer_interr
 
 static struct irqaction omap2_gp_timer_irq = {
 	.name		= "gp timer",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= omap2_gp_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-pnx4008/time.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-pnx4008/time.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-pnx4008/time.c
@@ -82,7 +82,7 @@ static irqreturn_t pnx4008_timer_interru
 
 static struct irqaction pnx4008_timer_irq = {
 	.name = "PNX4008 Tick Timer",
-	.flags = IRQF_DISABLED | IRQF_TIMER,
+	.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler = pnx4008_timer_interrupt
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-pxa/time.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-pxa/time.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-pxa/time.c
@@ -97,7 +97,7 @@ pxa_timer_interrupt(int irq, void *dev_i
 
 static struct irqaction pxa_timer_irq = {
 	.name		= "PXA Timer Tick",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= pxa_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-realview/core.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-realview/core.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-realview/core.c
@@ -549,7 +549,7 @@ static irqreturn_t realview_timer_interr
 
 static struct irqaction realview_timer_irq = {
 	.name		= "RealView Timer Tick",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= realview_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-sa1100/h3600.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-sa1100/h3600.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-sa1100/h3600.c
@@ -740,7 +740,7 @@ static void h3800_IRQ_demux(unsigned int
 static struct irqaction h3800_irq = {
 	.name		= "h3800_asic",
 	.handler	= h3800_IRQ_demux,
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 };
 
 u32 kpio_int_shadow = 0;
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-sa1100/time.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-sa1100/time.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-sa1100/time.c
@@ -111,7 +111,7 @@ sa1100_timer_interrupt(int irq, void *de
 
 static struct irqaction sa1100_timer_irq = {
 	.name		= "SA11xx Timer Tick",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= sa1100_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-shark/core.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-shark/core.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-shark/core.c
@@ -90,7 +90,7 @@ shark_timer_interrupt(int irq, void *dev
 
 static struct irqaction shark_timer_irq = {
 	.name		= "Shark Timer Tick",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= shark_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/mach-versatile/core.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/mach-versatile/core.c
+++ linux-2.6.21-rc5-mm2/arch/arm/mach-versatile/core.c
@@ -887,7 +887,7 @@ static irqreturn_t versatile_timer_inter
 
 static struct irqaction versatile_timer_irq = {
 	.name		= "Versatile Timer Tick",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= versatile_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/plat-iop/time.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/plat-iop/time.c
+++ linux-2.6.21-rc5-mm2/arch/arm/plat-iop/time.c
@@ -75,7 +75,7 @@ iop_timer_interrupt(int irq, void *dev_i
 static struct irqaction iop_timer_irq = {
 	.name		= "IOP Timer Tick",
 	.handler	= iop_timer_interrupt,
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 };
 
 void __init iop_init_time(unsigned long tick_rate)
Index: linux-2.6.21-rc5-mm2/arch/arm/plat-omap/timer32k.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/plat-omap/timer32k.c
+++ linux-2.6.21-rc5-mm2/arch/arm/plat-omap/timer32k.c
@@ -279,7 +279,7 @@ static struct dyn_tick_timer omap_dyn_ti
 
 static struct irqaction omap_32k_timer_irq = {
 	.name		= "32KHz timer",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= omap_32k_timer_interrupt,
 };
 
Index: linux-2.6.21-rc5-mm2/arch/arm/plat-s3c24xx/time.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/arch/arm/plat-s3c24xx/time.c
+++ linux-2.6.21-rc5-mm2/arch/arm/plat-s3c24xx/time.c
@@ -138,7 +138,7 @@ s3c2410_timer_interrupt(int irq, void *d
 
 static struct irqaction s3c2410_timer_irq = {
 	.name		= "S3C2410 Timer Tick",
-	.flags		= IRQF_DISABLED | IRQF_TIMER,
+	.flags		= IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
 	.handler	= s3c2410_timer_interrupt,
 };
 

-- 

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-03-27 20:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-27 20:22 [patch 0/7] Add IRQF_IRQPOLL flag to allow irqpoll Bernhard Walle
2007-03-27 20:22 ` [patch 1/7] Add IRQF_IRQPOLL flag (common code) Bernhard Walle
2007-03-27 20:22 ` [patch 2/7] Add IRQF_IRQPOLL flag on x86_64 Bernhard Walle
2007-03-27 20:22 ` [patch 3/7] Add IRQF_IRQPOLL flag on i386 Bernhard Walle
2007-03-27 20:22 ` [patch 4/7] Add IRQF_IRQPOLL flag on IA64 Bernhard Walle
2007-03-27 20:22   ` Bernhard Walle
2007-03-27 20:22 ` [patch 5/7] Add IRQF_IRQPOLL flag on sh Bernhard Walle
2007-03-27 20:22 ` [patch 6/7] Add IRQF_IRQPOLL flag on parisc Bernhard Walle
2007-03-27 20:22 ` [patch 7/7] Add IRQF_IRQPOLL flag on arm Bernhard Walle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.