From 8ef6445fa44c498a4f99abf533aaa3c7c59cf57a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 31 Mar 2015 18:16:09 -0400 Subject: Information hiding. Move kernelpps_handle out of thread-context structure... ...stash it in an inner context. PPS observed live on GR601-W. --- ppsthread.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'ppsthread.h') diff --git a/ppsthread.h b/ppsthread.h index 6fc4969d..a115163a 100644 --- a/ppsthread.h +++ b/ppsthread.h @@ -16,20 +16,6 @@ struct timedelta_t { }; #endif /* TIMEDELTA_DEFINED */ -/* use RFC 2782 PPS API */ -/* this needs linux >= 2.6.34 and - * CONFIG_PPS=y - * CONFIG_PPS_DEBUG=y [optional to kernel log pulses] - * CONFIG_PPS_CLIENT_LDISC=y - */ -#if defined(HAVE_SYS_TIMEPPS_H) -// include unistd.h here as it is missing on older pps-tools releases. -// 'close' is not defined otherwise. -#include -#include -#include -#endif - /* difference between timespecs in nanoseconds */ /* int is too small, avoid floats */ /* WARNING! this will overflow if x and y differ by more than a few seconds */ @@ -47,9 +33,6 @@ struct pps_thread_t { int errlevel, const char *fmt, ...); void (*wrap_hook)(volatile struct pps_thread_t *); struct timedelta_t fixin; /* real & clock time when in-band fix received */ -#if defined(HAVE_SYS_TIMEPPS_H) - pps_handle_t kernelpps_handle; -#endif /* defined(HAVE_SYS_TIMEPPS_H) */ struct timedelta_t ppsout_last; int ppsout_count; }; -- cgit v1.2.1