]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ntp: Make time_adjust static
authorJohn Stultz <johnstul@us.ibm.com>
Fri, 19 Mar 2010 03:19:27 +0000 (20:19 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 23 Mar 2010 16:19:37 +0000 (17:19 +0100)
Now that no arches are accessing time_adjust directly,
make it static.

Signed-off-by: John Stultz <johnstul@us.ibm.com>
LKML-Reference: <1268968769-19209-1-git-send-email-johnstul@us.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/timex.h
kernel/time/ntp.c

index 7a082b32d8e13ac98fe5b04b962f2f44a4f9ecc7..e2de51eedf05ed7a880a8c9728f907cfdb97656d 100644 (file)
@@ -238,7 +238,6 @@ extern int tickadj;                 /* amount of adjustment per tick */
  * phase-lock loop variables
  */
 extern int time_status;                /* clock synchronization status bits */
-extern long time_adjust;       /* The amount of adjtime left */
 
 extern void ntp_init(void);
 extern void ntp_clear(void);
index 7c0f180d6e9d59053740fed37d39ae5374cb3720..c63116863a80294c7ce1545b2089efe1d43258d0 100644 (file)
@@ -69,7 +69,7 @@ static s64                    time_freq;
 /* time at last adjustment (secs):                                     */
 static long                    time_reftime;
 
-long                           time_adjust;
+static long                    time_adjust;
 
 /* constant (boot-param configurable) NTP tick adjustment (upscaled)   */
 static s64                     ntp_tick_adj;