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:
Cyrill Gorcunov 2008-08-15 13:51:21 +02:00 committed by Ingo Molnar
parent f07f4f9046
commit 9ce122c6e5

View 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);
}