On Wed, 2008-04-30 at 11:39 +0200, Alessandro Zummo wrote:
Let me rephrase: This is how we're doing it for _every_ machine/platform
which supports update_persistent_clock(). It makes sense to let
individual RTC-class drivers do it differently if they need to, but it's
a damn good default behaviour until/unless someone actually shows that
they need it to be different. :)
You're assuming that the machine will shut down in an orderly fashion.
And the update from userspace, if enabled, will never be as accurate as
the one we do from the kernel. We currently go to great pains to ensure
that it happens at precisely the right time, and that's really only
feasible from within the kernel.
It's still much more reliable from the kernel than it is from userspace.
Want to send a patch to lkml which removes update_persistent_clock() and
see what people think of that? :)
--
dwmw2
--