Re: [RFC PATCH] rtc: add rtc_systohc for ntp use

2008-11-12 Thread Gabriel Paubert
On Tue, Nov 11, 2008 at 12:58:59PM -0800, David Brownell wrote: > On Tuesday 11 November 2008, David Woodhouse wrote: > > 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, wher

Re: [RFC PATCH] rtc: add rtc_systohc for ntp use

2008-11-11 Thread David Brownell
On Tuesday 11 November 2008, David Woodhouse wrote: > 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? That's a

Re: [rtc-linux] Re: [RFC PATCH] rtc: add rtc_systohc for ntp use

2008-11-11 Thread Alessandro Zummo
On Tue, 11 Nov 2008 14:10:39 + David Woodhouse <[EMAIL PROTECTED]> 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 o

Re: [RFC PATCH] rtc: add rtc_systohc for ntp use

2008-11-11 Thread Gabriel Paubert
On Tue, Nov 11, 2008 at 02:10:39PM +, David Woodhouse wrote: > On Mon, 2008-11-10 at 16:40 +0100, Alessandro Zummo wrote: > > Adds in-kernel hctosys functionality that can > > be used by ntp sync code. > > > > This is an RFC and has not been tested, I just want > > to check if something simila

Re: [RFC PATCH] rtc: add rtc_systohc for ntp use

2008-11-11 Thread David Woodhouse
On Mon, 2008-11-10 at 16:40 +0100, Alessandro Zummo wrote: > Adds in-kernel hctosys functionality that can > be used by ntp sync code. > > This is an RFC and has not been tested, I just want > to check if something similar could solve the problems > of those who want the NTP sync mode. You might

[RFC PATCH] rtc: add rtc_systohc for ntp use

2008-11-10 Thread Alessandro Zummo
Adds in-kernel hctosys functionality that can be used by ntp sync code. This is an RFC and has not been tested, I just want to check if something similar could solve the problems of those who want the NTP sync mode. Signed-off-by: Alessandro Zummo <[EMAIL PROTECTED]> Cc: Paul Mundt <[EMAIL PROTEC

Re: [RFC PATCH] rtc: add rtc_systohc for ntp use

2008-11-10 Thread Alessandro Zummo
On Mon, 10 Nov 2008 14:57:28 -0800 David Brownell <[EMAIL PROTECTED]> wrote: > Yeah, we should have one of these. :) :) great! now let's see if we can get others to agree! > A better default might be to update all the RTCs on the system. > > I'm thinking of my trusty test-case here: rtc0

Re: [RFC PATCH] rtc: add rtc_systohc for ntp use

2008-11-10 Thread David Brownell
Yeah, we should have one of these. :) On Monday 10 November 2008, Alessandro Zummo wrote: > @@ -30,7 +30,7 @@ config RTC_HCTOSYS > unnecessary fsck runs at boot time, and to network better. > > config RTC_HCTOSYS_DEVICE > - string "RTC used to set the system time" > + string "