]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] x86_64: Calibrate APIC timer using PM timer
authorAndi Kleen <ak@suse.de>
Fri, 3 Feb 2006 20:51:41 +0000 (21:51 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 5 Feb 2006 00:43:15 +0000 (16:43 -0800)
commit405e54ac836bdd1ddf9542a531f897b500040533
tree3af004c5533ab04297004f5ec40da4c6801b8fda
parent0907e8f3edd214218e75ee2fd09d6ebb462c2424
[PATCH] x86_64: Calibrate APIC timer using PM timer

On some broken motherboards (at least one NForce3 based AMD64 laptop)
the PIT timer runs at a incorrect frequency.  This patch adds a new
option "apicpmtimer" that allows to use the APIC timer and calibrate it
using the PMTimer.  It requires the earlier patch that allows to run the
main timer from the APIC.

Specifying apicpmtimer implies apicmaintimer.

The option defaults to off for now.

I tested it on a few systems and the resulting APIC timer frequencies
were usually a bit off, but always <1%, which should be tolerable.

TBD figure out heuristic to enable this automatically on the affected
systems TBD perhaps do it on all NForce3s or using DMI?

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Documentation/x86_64/boot-options.txt
arch/x86_64/kernel/apic.c
arch/x86_64/kernel/pmtimer.c
include/asm-x86_64/proto.h