[coyotos-dev] Sleep, wakeup, and persistence
Sam Mason
sam at samason.me.uk
Fri Sep 14 18:56:14 EDT 2007
On Fri, Sep 14, 2007 at 10:53:15PM +0200, Valerio Bellizzomi wrote:
> >That way, our embedded system can have the time punched into its
> >panel/ask some network server and eventually get an answer. In the
> >meantime, it can be relying on the kernel for short timeouts. A PC
> >would be able to get a good estimate of the real time from its clock
> >quickly so will be able to start servicing "real time" alarms (for lack
> >of a better word) quickly.
>
> There is a problem with that, I have a P4 mainboard that gains seconds
> faster than NTP clock.
> The mainboard clock counts faster than real time, so when NTP time is
> updated, the real time actually goes backwards.
That's kind of why I was was saying leave it to user land. You could
tell your system to bootstrap the clock with the PC's realtime clock
(does it even want to do that?) and only to start answering alarms (this
still seems like a bad term) when it's corrected the local clock.
Still got no idea how this sort of design would be implemented though.
Sam
More information about the coyotos-dev
mailing list