Subject: Re: proposal for changes to todr interface
To: Izumi Tsutsui <>
From: Garrett D'Amore <>
List: tech-kern
Date: 09/06/2006 12:46:14
David Laight wrote:
> On Thu, Sep 07, 2006 at 03:51:17AM +0900, Izumi Tsutsui wrote:
>> wrote:
>>> Yah, device_register() could set a "todr-use-localtime" property to  
>>> <true/> or <false/>, and MI drivers could query that.
>> A bit off topic, but I wonder if we could pass a rtc_offset info
>> from bootloader (which could set the value by installboot or
>> from some config file) so that we don't have to recompile or
>> modify kernels only for options RTC_OFFSET.
>> (for people who don't like rtclocaltime in rc.conf ;-p)
> rc.conf is a bit late, maybe the kernel could take it directly from
> a file (or symlink) in the root filesystem.
> The problem with having the rtc set to localtime is that you have to
> change the RTC_OFFSET option (at least) twice a year.
> Doing that by modifying the bootblocks doesn't seem sensible!

Agreed.  Windows does this by keeping track and updating when it occurs.

    -- Garrett
> 	David

Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
Phone: 951 325-2134  Fax: 951 325-2191