summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>2007-07-17 21:22:14 +0900
committerTony Luck <tony.luck@intel.com>2007-07-17 09:51:16 -0700
commitf8c087f31e1d3fbf1f7d0b3ea5e643f535e7de04 (patch)
treed8d95163a82bb55e314be380cb72d7e514a0bc61
parent4bbdec7a84ca8ce786c44bc338a37d97a13cbf20 (diff)
downloadblackbird-op-linux-f8c087f31e1d3fbf1f7d0b3ea5e643f535e7de04.tar.gz
blackbird-op-linux-f8c087f31e1d3fbf1f7d0b3ea5e643f535e7de04.zip
[IA64] Check if irq is sharable
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> Signed-off-by: Tony Luck <tony.luck@intel.com>
-rw-r--r--arch/ia64/kernel/iosapic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/ia64/kernel/iosapic.c b/arch/ia64/kernel/iosapic.c
index bcf91dceaf5d..cffb443a557c 100644
--- a/arch/ia64/kernel/iosapic.c
+++ b/arch/ia64/kernel/iosapic.c
@@ -502,8 +502,9 @@ static int iosapic_find_sharable_irq(unsigned long trigger, unsigned long pol)
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;
OpenPOWER on IntegriCloud