Re: [PATCHv2 0/6] pps: time synchronization over LPT

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alexander Gordeev
Date: Monday, March 22, 2010 - 2:37 pm

В Mon, 22 Mar 2010 14:01:50 -0700
john stultz <johnstul@us.ibm.com> пишет:


It's very close a singleshot adjustment, but it uses time_offset instead
of time_adjust. This code does the trick:

static inline s64 ntp_offset_chunk(s64 offset)
{
	if (time_status & STA_PPSTIME && time_status & STA_PPSSIGNAL)
		return offset;
	else
		return shift_right(offset, SHIFT_PLL + time_constant);
}

So when kernel consumer is active, the whole time_offset is applied
immediately.


Great, thanks for the point! Didn't think of it.


Sure!

-- 
  Alexander
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCHv2 0/6] pps: time synchronization over LPT, Alexander Gordeev, (Wed Feb 24, 5:28 am)
[PATCHv2 1/6] ntp: add hardpps implementation, Alexander Gordeev, (Wed Feb 24, 5:28 am)
[PATCHv2 2/6] pps: unify timestamp gathering, Alexander Gordeev, (Wed Feb 24, 5:28 am)
[PATCHv2 3/6] pps: capture MONOTONIC_RAW timestamps as well, Alexander Gordeev, (Wed Feb 24, 5:28 am)
[PATCHv2 4/6] pps: add kernel consumer support, Alexander Gordeev, (Wed Feb 24, 5:28 am)
[PATCHv2 5/6] pps: add parallel port PPS signal generator, Alexander Gordeev, (Wed Feb 24, 5:28 am)
[PATCHv2 6/6] pps: add parallel port PPS client, Alexander Gordeev, (Wed Feb 24, 5:28 am)
Re: [PATCHv2 1/6] ntp: add hardpps implementation, Rodolfo Giometti, (Mon Mar 1, 1:14 am)
Re: [PATCHv2 2/6] pps: unify timestamp gathering, Rodolfo Giometti, (Mon Mar 1, 1:18 am)
Re: [PATCHv2 4/6] pps: add kernel consumer support, Rodolfo Giometti, (Mon Mar 1, 1:29 am)
Re: [PATCHv2 6/6] pps: add parallel port PPS client, Rodolfo Giometti, (Mon Mar 1, 1:42 am)
Re: [PATCHv2 1/6] ntp: add hardpps implementation, Alexander Gordeev, (Mon Mar 1, 3:43 am)
Re: [PATCHv2 4/6] pps: add kernel consumer support, Alexander Gordeev, (Mon Mar 1, 3:48 am)
Re: [PATCHv2 5/6] pps: add parallel port PPS signal generator, Alexander Gordeev, (Mon Mar 1, 3:51 am)
Re: [PATCHv2 0/6] pps: time synchronization over LPT, john stultz, (Mon Mar 8, 8:25 pm)
Re: [PATCHv2 0/6] pps: time synchronization over LPT, Alexander Gordeev, (Mon Mar 22, 1:42 pm)
Re: [PATCHv2 0/6] pps: time synchronization over LPT, john stultz, (Mon Mar 22, 2:01 pm)
Re: [PATCHv2 0/6] pps: time synchronization over LPT, Alexander Gordeev, (Mon Mar 22, 2:37 pm)