Skip to content

Commit 7cfb043

Browse files
committed
HPET: make minimum reprogramming delta useful
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 <[email protected]> Tested-by: Luiz Fernando N. Capitulino <[email protected]> Tested-by: Dmitry Nezhevenko <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
1 parent 1fb9b7d commit 7cfb043

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kernel/hpet.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ static void hpet_legacy_clockevent_register(void)
210210
/* Calculate the min / max delta */
211211
hpet_clockevent.max_delta_ns = clockevent_delta2ns(0x7FFFFFFF,
212212
&hpet_clockevent);
213-
hpet_clockevent.min_delta_ns = clockevent_delta2ns(0x30,
214-
&hpet_clockevent);
213+
/* 5 usec minimum reprogramming delta. */
214+
hpet_clockevent.min_delta_ns = 5000;
215215

216216
/*
217217
* Start hpet with the boot cpu mask and make it

0 commit comments

Comments
 (0)