diff options
Diffstat (limited to 'arch/x86/kernel/apic/apic.c')
| -rw-r--r-- | arch/x86/kernel/apic/apic.c | 9 | 
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 06c196d7e59..76b96d74978 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c @@ -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)  |