On Wed, Jun 11, 2014 at 06:07:08PM +0200, Miroslav Lichvar wrote:
> 
> This is mainly useful when other time sources are available on the
> system (e.g. NTP, hardware reference clocks, or other PTP domains)
> and a fallback to/from PTP is needed.

So, this would let ntpd mix PTP and NTP sources together?

What about adjusting the PHC?

Rebase? I get:
   Applying: Add new servo for NTP SHM reference clock.
   error: patch failed: phc2sys.c:43
   error: phc2sys.c: patch does not apply

> +static double ntpshm_sample(struct servo *servo,
> +                         int64_t offset,
> +                         uint64_t local_ts,
> +                         enum servo_state *state)
> +{
> +     struct ntpshm_servo *s = container_of(servo, struct ntpshm_servo, 
> servo);
> +     uint64_t clock_ts = local_ts - offset;
> +
> +     s->shm->mode = 1;
> +     s->shm->count++;
> +     s->shm->valid = 0;
> +     /* TODO: write memory barrier */

How can this be done in user space?

Thanks,
Richard

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to