Subject: CVS commit: src/sys/arch/sh3/sh3
To: None <source-changes@NetBSD.org>
From: Valeriy E. Ushakov <uwe@netbsd.org>
List: source-changes
Date: 10/11/2006 02:31:19
Module Name: src
Committed By: uwe
Date: Wed Oct 11 02:31:19 UTC 2006
Modified Files:
src/sys/arch/sh3/sh3: clock.c
Log Message:
Do calculations to estimate cpu and pclock using 64-bit and doing all
the multiplications first. Round to nearest, instead of down.
When estimating pclock don't compute sh_clock.cpucycle_1us * 1000000
sh_clock.cpuclock is exactly that (but without rounding errors).
This improves timekeeping on my Jornada.
To generate a diff of this commit:
cvs rdiff -r1.34 -r1.35 src/sys/arch/sh3/sh3/clock.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.