From 4f6ab8ac93234f5b4cfd5ed9ddfb151c6e08e0ef Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 15 Sep 2015 17:38:58 +0200 Subject: [PATCH] sys: move DRIFT_REMOVAL_INTERVAL definition In the SunOS and Solaris drivers DRIFT_REMOVAL_INTERVAL needs to be defined before it's used. This was broken in commit b6a27df5b9be0f07f151c8fba311cb7eadb2b13e. --- sys_solaris.c | 5 ++--- sys_sunos.c | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/sys_solaris.c b/sys_solaris.c index 6c018ee..463f80c 100644 --- a/sys_solaris.c +++ b/sys_solaris.c @@ -83,6 +83,8 @@ static int index=0; /* If 1, need to run dosynctodr(). If 0, don't */ static int need_dosynctodr = -1; +/* Interval in seconds between adjustments to cancel systematic drift */ +#define DRIFT_REMOVAL_INTERVAL (4.0) #define GET_ZERO (zeroes[index^=1]) @@ -305,9 +307,6 @@ immediate_step(void) /* ================================================== */ -/* Interval in seconds between adjustments to cancel systematic drift */ -#define DRIFT_REMOVAL_INTERVAL (4.0) - static int drift_removal_running = 0; static SCH_TimeoutID drift_removal_id; diff --git a/sys_sunos.c b/sys_sunos.c index 1e7f3ab..f3eb608 100644 --- a/sys_sunos.c +++ b/sys_sunos.c @@ -76,6 +76,9 @@ static double adjustment_requested; */ static unsigned long our_tickadj = 100; +/* Interval in seconds between adjustments to cancel systematic drift */ +#define DRIFT_REMOVAL_INTERVAL (4.0) + /* ================================================== */ static void @@ -291,9 +294,6 @@ immediate_step(void) /* ================================================== */ -/* Interval in seconds between adjustments to cancel systematic drift */ -#define DRIFT_REMOVAL_INTERVAL (4.0) - static int drift_removal_running = 0; static SCH_TimeoutID drift_removal_id;