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
b6a27df5b9.
This commit is contained in:
Miroslav Lichvar 2015-09-15 17:38:58 +02:00
parent d2d82e2e5f
commit 4f6ab8ac93
2 changed files with 5 additions and 6 deletions

View file

@ -83,6 +83,8 @@ static int index=0;
/* If 1, need to run dosynctodr(). If 0, don't */ /* If 1, need to run dosynctodr(). If 0, don't */
static int need_dosynctodr = -1; 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]) #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 int drift_removal_running = 0;
static SCH_TimeoutID drift_removal_id; static SCH_TimeoutID drift_removal_id;

View file

@ -76,6 +76,9 @@ static double adjustment_requested;
*/ */
static unsigned long our_tickadj = 100; static unsigned long our_tickadj = 100;
/* Interval in seconds between adjustments to cancel systematic drift */
#define DRIFT_REMOVAL_INTERVAL (4.0)
/* ================================================== */ /* ================================================== */
static void 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 int drift_removal_running = 0;
static SCH_TimeoutID drift_removal_id; static SCH_TimeoutID drift_removal_id;