x86/xen: Override ACPI IRQ management callback __acpi_unregister_gsi
authorJiang Liu <jiang.liu@linux.intel.com>
Tue, 20 Jan 2015 02:21:07 +0000 (10:21 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 20 Jan 2015 10:44:41 +0000 (11:44 +0100)
commit8abb850a03a3a8b11a0e92949e5b99d9cc178e35
tree7a9afe715280a67b7890e9af880cef0f163f3679
parent9889eaeb7c999cae64006bb98c47f40f412ec875
x86/xen: Override ACPI IRQ management callback __acpi_unregister_gsi

Xen overrides __acpi_register_gsi and leaves __acpi_unregister_gsi as is.
That means, an IRQ allocated by acpi_register_gsi_xen_hvm() or
acpi_register_gsi_xen() will be freed by acpi_unregister_gsi_ioapic(),
which may cause undesired effects. So override __acpi_unregister_gsi to
NULL for safety.

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Tested-by: Sander Eikelenboom <linux@eikelenboom.it>
Cc: Tony Luck <tony.luck@intel.com>
Cc: xen-devel@lists.xenproject.org
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: David Vrabel <david.vrabel@citrix.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Graeme Gregory <graeme.gregory@linaro.org>
Cc: Lv Zheng <lv.zheng@intel.com>
Link: http://lkml.kernel.org/r/1421720467-7709-4-git-send-email-jiang.liu@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/acpi.h
arch/x86/pci/xen.c