Subject: Re: todr changes to improve clock accuracy across sleeps & reboots
To: None <tech-kern@NetBSD.org>
From: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
List: tech-kern
Date: 09/13/2006 14:07:05
On Sat, Sep 09, 2006 at 07:37:15PM +0200, Frank Kardel wrote:
> That knowledge is already there...
> 
> The int variable time_adjusted gets or'ed with 0x1 when adjusttime with an
> effective adjustment is called. 0x2 is or'ed into it when ntp_adjusttime is
> called in a time-adjusting manner. Maybe we should or in 0x4 when we
> do a set-time and use the information to decide whether to set the rtc 
> on exit.
> Unless time_adjust is different from 0 we should refrain from disturbing the
> rtc.

Sounds good to me.
	-is