public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] irq: handle irq0 special only on x86
@ 2009-12-09  9:20 Uwe Kleine-König
  2009-12-09  9:28 ` Américo Wang
  2010-01-12 15:59 ` Uwe Kleine-König
  0 siblings, 2 replies; 10+ messages in thread
From: Uwe Kleine-König @ 2009-12-09  9:20 UTC (permalink / raw)
  To: x86; +Cc: linux-kernel, Thomas Gleixner, Ingo Molnar, H. Peter Anvin

I just noticed this when digging in the irq handling.  At least for arm
this doesn't make sense.  Not sure if x86 is the only arch this test
is valid for, but probably it is.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
---
 kernel/irq/spurious.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/kernel/irq/spurious.c b/kernel/irq/spurious.c
index 22b0a6e..4996b66 100644
--- a/kernel/irq/spurious.c
+++ b/kernel/irq/spurious.c
@@ -199,8 +199,10 @@ try_misrouted_irq(unsigned int irq, struct irq_desc *desc,
 	if (irqfixup < 2)
 		return 0;
 
+#if defined(CONFIG_ARCH_X86)
 	if (!irq)
 		return 1;
+#endif
 
 	/*
 	 * Since we don't get the descriptor lock, "action" can
-- 
1.6.5.2


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

end of thread, other threads:[~2010-01-13  5:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-09  9:20 [PATCH] irq: handle irq0 special only on x86 Uwe Kleine-König
2009-12-09  9:28 ` Américo Wang
2009-12-09  9:35   ` Uwe Kleine-König
2009-12-09  9:41   ` David Miller
2009-12-10  8:24     ` Uwe Kleine-König
2009-12-10 16:40       ` H. Peter Anvin
2009-12-13  0:34         ` Maciej W. Rozycki
2009-12-16 14:04         ` Uwe Kleine-König
2010-01-12 15:59 ` Uwe Kleine-König
2010-01-13  4:59   ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox