]> git.hungrycats.org Git - linux/commit
[PATCH] Cleanup & fix lost ticks handling on x86-64
authorAndi Kleen <ak@suse.de>
Wed, 8 Sep 2004 00:48:30 +0000 (17:48 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 8 Sep 2004 00:48:30 +0000 (17:48 -0700)
commit36ea58a510aa8c04ff181becfb7dcc1726094f31
tree67e73c3d30decc2b9a63088068a53cf38d0bcb24
parent24ad7bda42d66b227738fa0b6135ac6785ff9bfa
[PATCH] Cleanup & fix lost ticks handling on x86-64

This cleans up the x86-64 lost tick handling and fixes some issues:

First it moves that code into an own function.

The newer could would become very noisy when the machine loses timer ticks
regularly.  This happens often on some laptops etc.  during the acpi ec
access (nothing much can be really done about it) This patch prints the
warnings only once.

It also fixes the logic on when to ask cpufreq for a new estimate.

And it implements timer fallback to HPET when there are really lots of lost
ticks.  This is following i386.  PIT fallback isn't implemented right now
though, but I hope we don't need this.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/time.c