From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ishimatsu Yasuaki Date: Wed, 09 May 2007 07:55:00 +0000 Subject: [PATCH 7/12] Check if irq is sharable Message-Id: <46417E54.7050008@jp.fujitsu.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org Need to check if irq is sharable amoung handlers when searching sharable IOSAPIC irq. Signed-off-by: Kenji Kaneshige Signed-off-by: Yasuaki Ishimatsu --- arch/ia64/kernel/iosapic.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) Index: linux-2.6.21-rc5/arch/ia64/kernel/iosapic.c =================================--- linux-2.6.21-rc5.orig/arch/ia64/kernel/iosapic.c 2007-04-05 22:18:12.000000000 +0900 +++ linux-2.6.21-rc5/arch/ia64/kernel/iosapic.c 2007-04-05 22:18:14.000000000 +0900 @@ -503,8 +503,9 @@ 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;