|
@@ -1381,12 +1381,17 @@ void __cpuinit end_local_APIC_setup(void)
|
|
|
#endif
|
|
|
|
|
|
apic_pm_activate();
|
|
|
+}
|
|
|
+
|
|
|
+void __init bsp_end_local_APIC_setup(void)
|
|
|
+{
|
|
|
+ end_local_APIC_setup();
|
|
|
|
|
|
/*
|
|
|
* Now that local APIC setup is completed for BP, configure the fault
|
|
|
* handling for interrupt remapping.
|
|
|
*/
|
|
|
- if (!smp_processor_id() && intr_remapping_enabled)
|
|
|
+ if (intr_remapping_enabled)
|
|
|
enable_drhd_fault_handling();
|
|
|
|
|
|
}
|
|
@@ -1756,7 +1761,7 @@ int __init APIC_init_uniprocessor(void)
|
|
|
enable_IO_APIC();
|
|
|
#endif
|
|
|
|
|
|
- end_local_APIC_setup();
|
|
|
+ bsp_end_local_APIC_setup();
|
|
|
|
|
|
#ifdef CONFIG_X86_IO_APIC
|
|
|
if (smp_found_config && !skip_ioapic_setup && nr_ioapics)
|