]> git.karo-electronics.de Git - karo-tx-linux.git/commit
HPET: make minimum reprogramming delta useful
authorThomas Gleixner <tglx@linutronix.de>
Wed, 3 Sep 2008 21:37:24 +0000 (21:37 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Oct 2008 02:44:42 +0000 (19:44 -0700)
commit4f8e2bf785bd7e5ba9b93a7d5ad5c18ba409a199
tree9ec74bf7ab93a564aafb5ee3afa7eda4185cb14f
parent19ab6cbbf02a7d4ca81ef44cc856ce11870e202b
HPET: make minimum reprogramming delta useful

commit 7cfb0435330364f90f274a26ecdc5f47f738498c upstream

The minimum reprogramming delta was hardcoded in HPET ticks,
which is stupid as it does not work with faster running HPETs.
The C1E idle patches made this prominent on AMD/RS690 chipsets,
where the HPET runs with 25MHz. Set it to 5us which seems to be
a reasonable value and fixes the problems on the bug reporters
machines. We have a further sanity check now in the clock events,
which increases the delta when it is not sufficient.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Tested-by: Dmitry Nezhevenko <dion@inhex.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/hpet.c