Commit 9ce122c6 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Ingo Molnar

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: default avatarCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent f07f4f90
...@@ -830,10 +830,11 @@ void lapic_shutdown(void) ...@@ -830,10 +830,11 @@ void lapic_shutdown(void)
return; return;
local_irq_save(flags); local_irq_save(flags);
clear_local_APIC();
if (enabled_via_apicbase) if (enabled_via_apicbase)
disable_local_APIC(); disable_local_APIC();
else
clear_local_APIC();
local_irq_restore(flags); local_irq_restore(flags);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment