diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-07-06 13:03:35 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-07-11 13:19:34 -0400 |
commit | 97ffab1f14638d2c95ad986ce735481d164a0bd2 (patch) | |
tree | ed5c5c072d5b7dbb5c087dcb682072ff3075dbf2 /arch/x86/pci | |
parent | 78316ada2222b5e3abc043eea7644e12319042d6 (diff) |
xen/pci: Use 'acpi_gsi_to_irq' value unconditionally.
In the past we would only use the function's value if the
returned value was not equal to 'acpi_sci_override_gsi'. Meaning
that the INT_SRV_OVR values for global and source irq were different.
But it is OK to use the function's value even when the global
and source irq are the same.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'arch/x86/pci')
-rw-r--r-- | arch/x86/pci/xen.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c index f07c419a616c..1017c7bee388 100644 --- a/arch/x86/pci/xen.c +++ b/arch/x86/pci/xen.c | |||
@@ -407,10 +407,9 @@ static __init void xen_setup_acpi_sci(void) | |||
407 | * the ACPI interpreter and keels over since IRQ 9 has not been | 407 | * the ACPI interpreter and keels over since IRQ 9 has not been |
408 | * setup as we had setup IRQ 20 for it). | 408 | * setup as we had setup IRQ 20 for it). |
409 | */ | 409 | */ |
410 | /* Check whether the GSI != IRQ */ | ||
411 | if (acpi_gsi_to_irq(gsi, &irq) == 0) { | 410 | if (acpi_gsi_to_irq(gsi, &irq) == 0) { |
412 | if (irq >= 0 && irq != gsi) | 411 | /* Use the provided value if it's valid. */ |
413 | /* Bugger, we MUST have that IRQ. */ | 412 | if (irq >= 0) |
414 | gsi_override = irq; | 413 | gsi_override = irq; |
415 | } | 414 | } |
416 | 415 | ||