https://github.com/torvalds/linux
Revision ee339fe63ac408e4604c1c88b1f9a428f2511b70 authored by Konrad Rzeszutek Wilk on 06 July 2011, 13:43:16 UTC, committed by Konrad Rzeszutek Wilk on 07 July 2011, 16:19:08 UTC
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.

CC: stable@kernel.org
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>
1 parent 155a16f
History
Tip revision: ee339fe63ac408e4604c1c88b1f9a428f2511b70 authored by Konrad Rzeszutek Wilk on 06 July 2011, 13:43:16 UTC
xen/pci: Move check for acpi_sci_override_gsi to xen_setup_acpi_sci.
Tip revision: ee339fe

back to top