Skip to content

Commit

Permalink
x86: apic - do not clear APIC twice in lapic_shutdown
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed Aug 15, 2008
1 parent f07f4f9 commit 9ce122c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/x86/kernel/apic_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9ce122c

Please sign in to comment.