diff options
Diffstat (limited to 'arch/x86/kernel/apic/apic.c')
| -rw-r--r-- | arch/x86/kernel/apic/apic.c | 28 | 
1 files changed, 12 insertions, 16 deletions
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index b994cc84aa7..a5b4dce1b7a 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c @@ -1477,8 +1477,7 @@ void __init bsp_end_local_APIC_setup(void)  	 * Now that local APIC setup is completed for BP, configure the fault  	 * handling for interrupt remapping.  	 */ -	if (irq_remapping_enabled) -		irq_remap_enable_fault_handling(); +	irq_remap_enable_fault_handling();  } @@ -2251,8 +2250,7 @@ static int lapic_suspend(void)  	local_irq_save(flags);  	disable_local_APIC(); -	if (irq_remapping_enabled) -		irq_remapping_disable(); +	irq_remapping_disable();  	local_irq_restore(flags);  	return 0; @@ -2268,16 +2266,15 @@ static void lapic_resume(void)  		return;  	local_irq_save(flags); -	if (irq_remapping_enabled) { -		/* -		 * IO-APIC and PIC have their own resume routines. -		 * We just mask them here to make sure the interrupt -		 * subsystem is completely quiet while we enable x2apic -		 * and interrupt-remapping. -		 */ -		mask_ioapic_entries(); -		legacy_pic->mask_all(); -	} + +	/* +	 * IO-APIC and PIC have their own resume routines. +	 * We just mask them here to make sure the interrupt +	 * subsystem is completely quiet while we enable x2apic +	 * and interrupt-remapping. +	 */ +	mask_ioapic_entries(); +	legacy_pic->mask_all();  	if (x2apic_mode)  		enable_x2apic(); @@ -2320,8 +2317,7 @@ static void lapic_resume(void)  	apic_write(APIC_ESR, 0);  	apic_read(APIC_ESR); -	if (irq_remapping_enabled) -		irq_remapping_reenable(x2apic_mode); +	irq_remapping_reenable(x2apic_mode);  	local_irq_restore(flags);  }  |