mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 10:44:14 +08:00
[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>
This commit is contained in:
parent
4bbdec7a84
commit
f8c087f31e
@ -502,8 +502,9 @@ static int iosapic_find_sharable_irq(unsigned long trigger, unsigned long pol)
|
|||||||
for (i = 0; i <= NR_IRQS; i++) {
|
for (i = 0; i <= NR_IRQS; i++) {
|
||||||
info = &iosapic_intr_info[i];
|
info = &iosapic_intr_info[i];
|
||||||
if (info->trigger == trigger && info->polarity == pol &&
|
if (info->trigger == trigger && info->polarity == pol &&
|
||||||
(info->dmode == IOSAPIC_FIXED || info->dmode ==
|
(info->dmode == IOSAPIC_FIXED ||
|
||||||
IOSAPIC_LOWEST_PRIORITY)) {
|
info->dmode == IOSAPIC_LOWEST_PRIORITY) &&
|
||||||
|
can_request_irq(i, IRQF_SHARED)) {
|
||||||
if (min_count == -1 || info->count < min_count) {
|
if (min_count == -1 || info->count < min_count) {
|
||||||
irq = i;
|
irq = i;
|
||||||
min_count = info->count;
|
min_count = info->count;
|
||||||
|
Loading…
Reference in New Issue
Block a user