aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/acpi/boot.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/acpi/boot.c')
-rw-r--r--arch/x86/kernel/acpi/boot.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
index 5427d9b70f75..ddddaed91872 100644
--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -826,6 +826,28 @@ int acpi_unregister_ioapic(acpi_handle handle, u32 gsi_base)
826} 826}
827EXPORT_SYMBOL(acpi_unregister_ioapic); 827EXPORT_SYMBOL(acpi_unregister_ioapic);
828 828
829/**
830 * acpi_ioapic_registered - Check whether IOAPIC assoicatied with @gsi_base
831 * has been registered
832 * @handle: ACPI handle of the IOAPIC deivce
833 * @gsi_base: GSI base associated with the IOAPIC
834 *
835 * Assume caller holds some type of lock to serialize acpi_ioapic_registered()
836 * with acpi_register_ioapic()/acpi_unregister_ioapic().
837 */
838int acpi_ioapic_registered(acpi_handle handle, u32 gsi_base)
839{
840 int ret = 0;
841
842#ifdef CONFIG_ACPI_HOTPLUG_IOAPIC
843 mutex_lock(&acpi_ioapic_lock);
844 ret = mp_ioapic_registered(gsi_base);
845 mutex_unlock(&acpi_ioapic_lock);
846#endif
847
848 return ret;
849}
850
829static int __init acpi_parse_sbf(struct acpi_table_header *table) 851static int __init acpi_parse_sbf(struct acpi_table_header *table)
830{ 852{
831 struct acpi_table_boot *sb; 853 struct acpi_table_boot *sb;