xen/pci: Move check for acpi_sci_override_gsi to xen_setup_acpi_sci.
commit7a2a2812f3a0ad037261cd5cb10119ce7dc8d135
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 6 Jul 2011 13:43:16 +0000 (6 09:43 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 9 Jul 2011 06:15:05 +0000 (8 23:15 -0700)
treeb1d1cfdd7e26f1214aeebcc3861f44b2d4606fc0
parent26ae56d8c1c5f63fa96038035151f0ce561035c7
xen/pci: Move check for acpi_sci_override_gsi to xen_setup_acpi_sci.

commit ee339fe63ac408e4604c1c88b1f9a428f2511b70 upstream.

Previously we would check for acpi_sci_override_gsi == gsi every time
a PCI device was enabled. That works during early bootup, but later
on it could lead to triggering unnecessarily the acpi_gsi_to_irq(..) lookup.
The reason is that acpi_sci_override_gsi was declared in __initdata and
after early bootup could contain bogus values.

This patch moves the check for acpi_sci_override_gsi to the
site where the ACPI SCI is preset.

Reported-by: Raghavendra D Prabhu <rprabhu@wnohang.net>
Tested-by: Raghavendra D Prabhu <rprabhu@wnohang.net>
[http://lists.xensource.com/archives/html/xen-devel/2011-07/msg00154.html]
Suggested-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/pci/xen.c