[LinuxPPS] patch for 2.6.30

Udo van den Heuvel udovdh at xs4all.nl
Tue May 12 18:04:31 CEST 2009


Udo van den Heuvel wrote:
 > I made this of the pieces:
 >
 > bool handle_irq(unsigned irq, struct pt_regs *regs)
 > {
 >          struct irq_desc *desc;
 > #ifdef CONFIG_PPS_IRQ_EVENTS
 >          struct timespec ts;
 >
 >          /* Get IRQ timestamps as soon as possible for the PPS layer */
 >          getnstimeofday(&ts);
 > #endif
 >
 >          stack_overflow_check(regs);
 >
 >          desc = irq_to_desc(irq);
 >
 >          if (unlikely(!desc))
 >                  return false;
 >
 > #ifdef CONFIG_PPS_IRQ_EVENTS
 >                  /* Then, after sanity check, store the IRQ timestamp */
 >                  pps_irq_ts[irq] = ts;
 > #endif
 >          generic_handle_irq_desc(irq, desc);
 >          } else {

the else '} else {' should go...

 >          return true;
 > }

The results are attached.
I transplanted ntp-pps-2.6.28-rc6-ter.diff onto 2.6.30-rc6.
I removed ppsldisc, split pps.h into kernel and userland API.
Please do comment.

Udo


-------------- next part --------------
A non-text attachment was scrubbed...
Name: pps_2.6.30rc6.diff.bz2
Type: application/x-bzip
Size: 17418 bytes
Desc: not available
Url : http://ml.enneenne.com/pipermail/linuxpps/attachments/20090512/6aa79f47/attachment-0001.bin 


More information about the LinuxPPS mailing list