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> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
f07f4f9046
commit
9ce122c6e5
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue