Messages in this thread Patch in this message | | | Date | Thu, 01 Jan 1970 03:00:04 +0300 | From | Cyrill Gorcunov <> | Subject | [patch 4/8] x86: apic - do not clear APIC twice in lapic_shutdown |
| |
There is no need to clear APIC twice since disable_local_APIC will clear it anyway.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> ---
Index: linux-2.6.git/arch/x86/kernel/apic_32.c =================================================================== --- linux-2.6.git.orig/arch/x86/kernel/apic_32.c 2008-08-14 22:03:28.000000000 +0400 +++ linux-2.6.git/arch/x86/kernel/apic_32.c 2008-08-14 22:16:01.000000000 +0400 @@ -834,10 +834,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); } --
| |