[rtc-linux] Re: [RFC PATCH] rtc: add rtc_systohc for ntp use
Alessandro Zummo
alessandro.zummo at towertech.it
Wed Nov 12 05:11:55 EST 2008
On Tue, 11 Nov 2008 14:10:39 +0000
David Woodhouse <dwmw2 at infradead.org> wrote:
> You might do better to open the device once and keep it open, rather
> than taking the mutex and opening it again _during_ each call? You're
> going to be perturbing the timing by doing that.
If you keep it open no other in-kernel user would be able to
use it.
> I believe you were also concerned that some device wouldn't want the
> behaviour given by the existing sync_cmos_clock() function and workqueue
> stuff in kernel/ntp.c, where we update the clock precisely half-way
> through the second?
>
> We should probably rip that code out of ntp.c (or just disable it ifdef
> CONFIG_RTC_CLASS), and provide our own version of notify_cmos_timer().
>
> The workqueue stuff to trigger at half-past the second could be kept as
> a library function which most RTC devices would use, but they'd have the
> option to use their own instead.
I'll give it a look.
--
Best regards,
Alessandro Zummo,
Tower Technologies - Torino, Italy
http://www.towertech.it
More information about the Linuxppc-dev
mailing list