]> git.karo-electronics.de Git - linux-beck.git/commit
x86: apic reset counter on shutdown
authorThomas Gleixner <tglx@linutronix.de>
Thu, 6 Nov 2008 00:13:39 +0000 (01:13 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 11 Nov 2008 13:56:55 +0000 (14:56 +0100)
commita98f8fd24fb24fcb9a359553e64dd6aac5cf4279
tree3e24247b653bf567ecb96a8cd4a2f9b6987a9682
parentba21ebb6abac5c46e1d818d2ceda82420bd099ba
x86: apic reset counter on shutdown

Impact: avoid spurious lapic timer events on shutdown

The apic timer might be close to firing when it is shutdown. We can
not really disable the timer - we just mask the interrupt. That way we
can get an extra interrupt when it is reenabled. Set the counter to
max on shutdown to avoid this.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic.c