diff options
Diffstat (limited to 'arch/x86/kernel/acpi/boot.c')
-rw-r--r-- | arch/x86/kernel/acpi/boot.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index 0b993511e0c5..5427d9b70f75 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c | |||
@@ -810,15 +810,20 @@ int acpi_register_ioapic(acpi_handle handle, u64 phys_addr, u32 gsi_base) | |||
810 | 810 | ||
811 | return ret; | 811 | return ret; |
812 | } | 812 | } |
813 | |||
814 | EXPORT_SYMBOL(acpi_register_ioapic); | 813 | EXPORT_SYMBOL(acpi_register_ioapic); |
815 | 814 | ||
816 | int acpi_unregister_ioapic(acpi_handle handle, u32 gsi_base) | 815 | int acpi_unregister_ioapic(acpi_handle handle, u32 gsi_base) |
817 | { | 816 | { |
818 | /* TBD */ | 817 | int ret = -ENOSYS; |
819 | return -EINVAL; | 818 | |
820 | } | 819 | #ifdef CONFIG_ACPI_HOTPLUG_IOAPIC |
820 | mutex_lock(&acpi_ioapic_lock); | ||
821 | ret = mp_unregister_ioapic(gsi_base); | ||
822 | mutex_unlock(&acpi_ioapic_lock); | ||
823 | #endif | ||
821 | 824 | ||
825 | return ret; | ||
826 | } | ||
822 | EXPORT_SYMBOL(acpi_unregister_ioapic); | 827 | EXPORT_SYMBOL(acpi_unregister_ioapic); |
823 | 828 | ||
824 | static int __init acpi_parse_sbf(struct acpi_table_header *table) | 829 | static int __init acpi_parse_sbf(struct acpi_table_header *table) |