The patch titled pps: add parallel port PPS signal generator has been added to the -mm tree. Its filename is pps-add-parallel-port-pps-signal-generator-v7.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: pps: add parallel port PPS signal generator From: Alexander Gordeev <lasaine@xxxxxxxxxxxxx> Add PPS signal generator which utilizes STROBE pin of a parallel port to send PPS signals. It uses parport abstraction layer and hrtimers to precisely control the signal. Signed-off-by: Alexander Gordeev <lasaine@xxxxxxxxxxxxx> Cc: Rodolfo Giometti <giometti@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/pps/generators/Kconfig | 6 +----- drivers/pps/generators/pps_gen_parport.c | 11 +++++++++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff -puN drivers/pps/generators/Kconfig~pps-add-parallel-port-pps-signal-generator-v7 drivers/pps/generators/Kconfig --- a/drivers/pps/generators/Kconfig~pps-add-parallel-port-pps-signal-generator-v7 +++ a/drivers/pps/generators/Kconfig @@ -2,16 +2,12 @@ # PPS generators configuration # -if PPS - comment "PPS generators support" config PPS_GENERATOR_PARPORT tristate "Parallel port PPS signal generator" - depends on PARPORT != n && GENERIC_TIME + depends on PARPORT help If you say yes here you get support for a PPS signal generator which utilizes STROBE pin of a parallel port to send PPS signals. It uses parport abstraction layer and hrtimers to precisely control the signal. - -endif diff -puN drivers/pps/generators/pps_gen_parport.c~pps-add-parallel-port-pps-signal-generator-v7 drivers/pps/generators/pps_gen_parport.c --- a/drivers/pps/generators/pps_gen_parport.c~pps-add-parallel-port-pps-signal-generator-v7 +++ a/drivers/pps/generators/pps_gen_parport.c @@ -76,8 +76,15 @@ static enum hrtimer_restart hrtimer_even long lim, delta; unsigned long flags; - /* NB: approx time with blocked interrupts = - send_delay + 3 * SAFETY_INTERVAL */ + /* We have to disable interrupts here. The idea is to prevent + * other interrupts on the same processor to introduce random + * lags while polling the clock. getnstimeofday() takes <1us on + * most machines while other interrupt handlers can take much + * more potentially. + * + * NB: approx time with blocked interrupts = + * send_delay + 3 * SAFETY_INTERVAL + */ local_irq_save(flags); /* first of all we get the time stamp... */ _ Patches currently in -mm which might be from lasaine@xxxxxxxxxxxxx are pps-trivial-fixes.patch pps-declare-variables-where-they-are-used-in-switch.patch pps-fix-race-in-pps_fetch-handler.patch pps-unify-timestamp-gathering.patch pps-access-pps-device-by-direct-pointer.patch pps-convert-printk-pr_-to-dev_.patch pps-move-idr-stuff-to-ppsc.patch pps-make-idr-lock-a-mutex-and-protect-idr_pre_get.patch pps-use-bug_on-for-kernel-api-safety-checks.patch pps-simplify-conditions-a-bit.patch pps-timestamp-is-always-passed-to-dcd_change.patch ntp-add-hardpps-implementation.patch ntp-add-hardpps-implementation-update-v7.patch pps-capture-monotonic_raw-timestamps-as-well.patch pps-capture-monotonic_raw-timestamps-as-well-v7.patch pps-add-kernel-consumer-support.patch pps-add-kernel-consumer-support-v7.patch pps-add-parallel-port-pps-client.patch pps-add-parallel-port-pps-client-v7.patch pps-add-parallel-port-pps-signal-generator.patch pps-add-parallel-port-pps-signal-generator-v7.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html