]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: apic - do not clear APIC twice in lapic_shutdown
authorCyrill Gorcunov <gorcunov@gmail.com>
Fri, 15 Aug 2008 11:51:21 +0000 (13:51 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 15 Aug 2008 11:51:21 +0000 (13:51 +0200)
There is no need to clear APIC twice since
disable_local_APIC will clear it anyway.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic_32.c

index 6af20dd12c9617465e0dd09a9608c9e60ad9dccb..a151d66f948c8cbf5abb7c5d7b7c82c3524cd4a4 100644 (file)
@@ -830,10 +830,11 @@ void lapic_shutdown(void)
                return;
 
        local_irq_save(flags);
-       clear_local_APIC();
 
        if (enabled_via_apicbase)
                disable_local_APIC();
+       else
+               clear_local_APIC();
 
        local_irq_restore(flags);
 }