rtc again...

Gabriel Paubert paubert at iram.es
Tue Aug 8 21:20:39 EST 2000


	Hi Geert,

On Fri, 4 Aug 2000, Geert Uytterhoeven wrote:

> > Actually given the problems with RTC being UTC or local time, the offset
> > might perhaps better be setup as a kernel parameter so that th system
> > start up in a known good state. It seems that it is in RAM for Macs, but
> > what about other machines (I have no problems since all my machines are
> > UTC and I simply refuse to use an OS which requires anything else) ?
>
> Why do you want to handle the offset in the kernel???
>
> Any decent distro (e.g. Debian) allows to configure the time system for a
> hardware clock running in either UTC or local time, so the correction will be
> done on boot up.
>

I think there is some misunderstanding here. I don't want to handle the
offset in the kernel, with one possible exception: when reading the
RTC for the first time to initialize xtime. Getting timestamps right as early
as possible might be important in some cases, and it's not a big deal
since the code to do this is small and thrown away anyway.

Oh and I can't remember whether the clock or hwclock command ever worked
on my machines. I think hwclock did once upon a time; life is so much
simpler with NTP anyway (but it is run quite late in the boot process,
actually just before the rc.local script on most of my machines and after
mounting NFS file systems and starting daemons like syslogd/crond/inetd).

	Gabriel.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list