Files
linux/kernel
Kasper Pedersen a6d553ac64 time: Compensate for rounding on odd-frequency clocksources
commit a386b5af8e upstream.

When the clocksource is not a multiple of HZ, the clock will be off.  For
acpi_pm, HZ=1000 the error is 127.111 ppm:

The rounding of cycle_interval ends up generating a false error term in
ntp_error accumulation since xtime_interval is not exactly 1/HZ.  So, we
subtract out the error caused by the rounding.

This has been visible since 2.6.32-rc2
	commit a092ff0f90
	time: Implement logarithmic time accumulation
That commit raised NTP_INTERVAL_FREQ and exposed the rounding error.

testing tool: http://n1.taur.dk/permanent/testpmt.c
Also tested with ntpd and a frequency counter.

Signed-off-by: Kasper Pedersen <kkp2010@kasperkp.dk>
Acked-by: john stultz <johnstul@us.ibm.com>
Cc: John Kacur <jkacur@redhat.com>
Cc: Clark Williams <williams@redhat.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Will Tisdale <willtisdale@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-06-23 15:24:09 -07:00
..
2011-06-23 15:24:09 -07:00
2009-12-18 14:03:52 -08:00
2009-09-18 09:48:52 -07:00
2011-02-17 15:37:19 -08:00
2009-09-19 13:13:17 -07:00
2011-02-17 15:37:19 -08:00
2010-07-05 11:10:31 -07:00
2009-10-29 08:56:20 +10:30
2011-04-22 08:44:25 -07:00
2010-05-26 14:29:18 -07:00
2009-10-07 08:11:20 +02:00
2009-09-23 07:39:41 -07:00
2011-02-17 15:37:19 -08:00
2009-09-23 18:13:10 -07:00