[LinuxPPS] ns decreasing on update

Marc Leclerc marc_x at videotron.ca
Mon Apr 5 21:53:50 CEST 2010


Hi,

Something looks weird to me here, my trace coming from the interrupt has
the nano second decreasing on interrupt entry, wondering why this is
happening.

static irqreturn_t pps_hwirq_handler(int irq, void *parm)
{
  struct timespec __ts;
  struct pps_ktime ts;

  /* First of all we get the time stamp... */
  getnstimeofday(&__ts);

  printk(KERN_ALERT "PPS event at %lu.%lu\n", __ts.tv_sec,
__ts.tv_nsec);

  /* ... and translate it to PPS time data struct */
  ts.sec = __ts.tv_sec;
  ts.nsec = __ts.tv_nsec;

  pps_event(source, &ts, PPS_CAPTUREASSERT, NULL);

  //pr_debug("PPS event at %lu\n", jiffies);

  return IRQ_HANDLED;
}



PPS event at 1270496844.938656000
PPS event at 1270496845.938622000
PPS event at 1270496846.938590000
PPS event at 1270496847.938555000
PPS event at 1270496848.938524000
PPS event at 1270496849.938489000
PPS event at 1270496850.938457000
PPS event at 1270496851.938421000
PPS event at 1270496852.938392000
PPS event at 1270496853.938358000
PPS event at 1270496854.938327000
PPS event at 1270496855.938289000
PPS event at 1270496856.938259000
PPS event at 1270496857.938224000
PPS event at 1270496858.938194000
PPS event at 1270496859.938158000
PPS event at 1270496860.938127000
PPS event at 1270496861.938093000
PPS event at 1270496862.938060000
PPS event at 1270496863.938026000
PPS event at 1270496864.937994000
PPS event at 1270496865.937958000
PPS event at 1270496866.937929000
PPS event at 1270496867.937894000
PPS event at 1270496868.937863000
PPS event at 1270496869.937825000
PPS event at 1270496870.937798000
...
PPS event at 1270496927.935909000
PPS event at 1270496928.935877000
PPS event at 1270496929.935840000
PPS event at 1270496930.935810000




More information about the LinuxPPS mailing list