Re: [Linuxptp-devel] UTC leap, TAI and clock precision

2015-03-12 Thread Miroslav Lichvar
On Thu, Mar 12, 2015 at 09:49:34AM +0100, Pierre Mallard wrote: Hi Miroslav, and thansks for your help. Just a precision : you were talking about the first call to sysclk_set_leap not sysclk_set_tai don't you ? Both, actually. Indeed kernel sources seems to manage leap by setting

Re: [Linuxptp-devel] UTC leap, TAI and clock precision

2015-03-12 Thread Pierre Mallard
Hi Miroslav, and thansks for your help. Just a precision : you were talking about the first call to sysclk_set_leap not sysclk_set_tai don't you ? Indeed kernel sources seems to manage leap by setting tai_offset. I wonder then why the second call is perform, does it have any interest or is it

Re: [Linuxptp-devel] UTC leap, TAI and clock precision

2015-03-11 Thread Miroslav Lichvar
On Mon, Mar 09, 2015 at 11:07:39PM +0100, Pierre Mallard wrote: 1) I need to have both TAI and UTC clocks available, and no leap on TAI for SW loop control purposes. In clock_utc_correct from clock.c, it seems to set leap (sysclk_set_leap) and then TAI offset (sysclk_set_tai_offset) in a non

[Linuxptp-devel] UTC leap, TAI and clock precision

2015-03-09 Thread Pierre Mallard
Dear developpers, I have a few general newbee question regarding linuxptp which I could not answer clearly on my own by reading documentation/code. If those question were previously adressed, fill free to point me to correct documentation. 1) I need to have both TAI and UTC clocks available, and