All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH take3 7/12] Check if irq is sharable
@ 2007-07-17 12:22 Yasuaki Ishimatsu
  0 siblings, 0 replies; only message in thread
From: Yasuaki Ishimatsu @ 2007-07-17 12:22 UTC (permalink / raw)
  To: linux-ia64

Need to check if irq is sharable amoung handlers when searching
sharable IOSAPIC irq.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>

 arch/ia64/kernel/iosapic.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

Index: linux-2.6.22/arch/ia64/kernel/iosapic.c
=================================--- linux-2.6.22.orig/arch/ia64/kernel/iosapic.c	2007-07-13 16:49:24.000000000 +0900
+++ linux-2.6.22/arch/ia64/kernel/iosapic.c	2007-07-13 16:50:02.000000000 +0900
@@ -502,8 +502,9 @@ static int iosapic_find_sharable_irq(uns
 	for (i = 0; i <= NR_IRQS; i++) {
 		info = &iosapic_intr_info[i];
 		if (info->trigger = trigger && info->polarity = pol &&
-		    (info->dmode = IOSAPIC_FIXED || info->dmode =
-		     IOSAPIC_LOWEST_PRIORITY)) {
+		    (info->dmode = IOSAPIC_FIXED ||
+		     info->dmode = IOSAPIC_LOWEST_PRIORITY) &&
+		    can_request_irq(i, IRQF_SHARED)) {
 			if (min_count = -1 || info->count < min_count) {
 				irq = i;
 				min_count = info->count;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-17 12:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-17 12:22 [PATCH take3 7/12] Check if irq is sharable Yasuaki Ishimatsu

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.