瀏覽代碼

ntp: Make time_esterror and time_maxerror static

Make time_esterror and time_maxerror static as no one uses them
outside of ntp.c
    
Signed-off-by: John Stultz <johnstul@us.ibm.com>
Cc: richard@rsk.demon.co.uk
LKML-Reference: <1264719761.3437.47.camel@localhost.localdomain>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
john stultz 15 年之前
父節點
當前提交
1f5b8f8a20
共有 2 個文件被更改,包括 2 次插入5 次删除
  1. 0 3
      include/linux/timex.h
  2. 2 2
      kernel/time/ntp.c

+ 0 - 3
include/linux/timex.h

@@ -238,9 +238,6 @@ extern int tickadj;			/* amount of adjustment per tick */
  * phase-lock loop variables
  * phase-lock loop variables
  */
  */
 extern int time_status;		/* clock synchronization status bits */
 extern int time_status;		/* clock synchronization status bits */
-extern long time_maxerror;	/* maximum error */
-extern long time_esterror;	/* estimated error */
-
 extern long time_adjust;	/* The amount of adjtime left */
 extern long time_adjust;	/* The amount of adjtime left */
 
 
 extern void ntp_init(void);
 extern void ntp_init(void);

+ 2 - 2
kernel/time/ntp.c

@@ -58,10 +58,10 @@ static s64			time_offset;
 static long			time_constant = 2;
 static long			time_constant = 2;
 
 
 /* maximum error (usecs):						*/
 /* maximum error (usecs):						*/
-long				time_maxerror = NTP_PHASE_LIMIT;
+static long			time_maxerror = NTP_PHASE_LIMIT;
 
 
 /* estimated error (usecs):						*/
 /* estimated error (usecs):						*/
-long				time_esterror = NTP_PHASE_LIMIT;
+static long			time_esterror = NTP_PHASE_LIMIT;
 
 
 /* frequency offset (scaled nsecs/secs):				*/
 /* frequency offset (scaled nsecs/secs):				*/
 static s64			time_freq;
 static s64			time_freq;