[CLUE-Tech] Real Time Clock and Power Resumes

Keith Hellman kehellman at yahoo.com
Sat Sep 21 22:46:20 MDT 2002


--- David Anselmi <anselmi at americanisp.net> wrote:
> Keith Hellman wrote:
> > 
> > I just happened to notice that, at least in 2.4.18, under General
> > Setup->APM Bios Support there is an entry labeled, you guessed it,
> 'RTC
> > stores time in GMT'.
> 
> I wonder what the kernel docs say about that.  But requiring a kernel 
> compile to change that setting seems less than ideal--maybe there's a 
> driver parameter to do the same thing.
> 
I made a VERY superficial look at the kernel sources:  CONFIG_RTC_IS_GMT
is only referenced in i386/kernel/apm.c, and it's only effect is to use
hard coded params or avoid code that calculates the local time from the
RTC (if the RTC is in GMT).

I suspect there is not enough 'critical mass' to make this a truely
configurable parameter (through /proc or an ioctl call) - using a GMT/LT
RTC is not something that would be changed from day to day or week to week
on a particular machine.  You'd pick your setup and stick with it.

Why is it only in i386/kernel/apm.c and not other architectures?  Because
suspect Windows (the OS that wants RTC==LT) only (mostly) runs on i386. 
Makes me wonder if there is a tangible bloat factor for i386 kernels to
work around or avoid Windowisms.



=====
Keith E. Hellman
kehellman at yahoo.com

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com



More information about the clue-tech mailing list