diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-03-20 12:47:40 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-03-20 12:47:40 -0500 |
commit | 9a21247181d93fdf99255911845ecdb041d21583 (patch) | |
tree | 6d69be36f8a2bd8c76bf02ead2f0121a511c0a92 /arch/i386/kernel/apic.c | |
parent | c752666c17f870fa8ae9f16804dd457e9e6daaec (diff) | |
parent | 7705a8792b0fc82fd7d4dd923724606bbfd9fb20 (diff) |
Merge branch 'master'
Diffstat (limited to 'arch/i386/kernel/apic.c')
-rw-r--r-- | arch/i386/kernel/apic.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/i386/kernel/apic.c b/arch/i386/kernel/apic.c index f39e09ef64ec..776c90989e06 100644 --- a/arch/i386/kernel/apic.c +++ b/arch/i386/kernel/apic.c | |||
@@ -570,16 +570,18 @@ void __devinit setup_local_APIC(void) | |||
570 | */ | 570 | */ |
571 | void lapic_shutdown(void) | 571 | void lapic_shutdown(void) |
572 | { | 572 | { |
573 | unsigned long flags; | ||
574 | |||
573 | if (!cpu_has_apic) | 575 | if (!cpu_has_apic) |
574 | return; | 576 | return; |
575 | 577 | ||
576 | local_irq_disable(); | 578 | local_irq_save(flags); |
577 | clear_local_APIC(); | 579 | clear_local_APIC(); |
578 | 580 | ||
579 | if (enabled_via_apicbase) | 581 | if (enabled_via_apicbase) |
580 | disable_local_APIC(); | 582 | disable_local_APIC(); |
581 | 583 | ||
582 | local_irq_enable(); | 584 | local_irq_restore(flags); |
583 | } | 585 | } |
584 | 586 | ||
585 | #ifdef CONFIG_PM | 587 | #ifdef CONFIG_PM |