Subject: Re: CVS commit: src/sys/arch/i386/i386
To: David Laight <dsl@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: source-changes
Date: 04/16/2003 21:26:16
On Wed, Apr 16, 2003 at 07:07:35PM +0000, David Laight wrote:
> 
> Module Name:	src
> Committed By:	dsl
> Date:		Wed Apr 16 19:07:35 UTC 2003
> 
> Modified Files:
> 	src/sys/arch/i386/i386: machdep.c
> 
> Log Message:
> Don't set the RTC to kernel time during shutdown.
> This stops the system RTC drifting if any hardclock ticks were missed (eg
> if the system spent any time at the kdb prompt).
> The RTC is set whenever the system clock is set, so setting at shutdown
> is unnecessary.

Hum ... what if ntp correct the clock with ntp_adjtime() ?
I suspect that after a long uptime, the RTC may have drifted significantly
from the kernel time.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 24 ans d'experience feront toujours la difference
--