[PATCH] x86-64: Disable local APIC timer use on AMD systems with C1E
authorAndi Kleen <ak@suse.de>
Mon, 2 Apr 2007 10:14:12 +0000 (12:14 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Mon, 2 Apr 2007 10:14:12 +0000 (12:14 +0200)
commit3556ddfa9284a86a59a9b78fe5894430f6ab4eef
treef85b5acde48b6ffa7f1c9abbb3ea2ff4a2e92b4b
parent2e175a90047a2dbc76fde169c990164895b25dfc
[PATCH] x86-64: Disable local APIC timer use on AMD systems with C1E

AMD dual core laptops with C1E do not run the APIC timer correctly
when they go idle. Previously the code assumed this only happened
on C2 or deeper.  But not all of these systems report support C2.

Use a AMD supplied snippet to detect C1E being enabled and then disable
local apic timer use.

This supercedes an earlier workaround using DMI detection of specific systems.

Thanks to Mark Langsdorf for the detection snippet.

Signed-off-by: Andi Kleen <ak@suse.de>
arch/i386/kernel/apic.c
arch/i386/kernel/cpu/amd.c
include/asm-i386/cpufeature.h
include/asm-i386/msr.h