Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
}