Skip to content

Commit

Permalink
ntp: Make time_esterror and time_maxerror static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
john stultz authored and Thomas Gleixner committed Jan 29, 2010
1 parent 64a028a commit 1f5b8f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions include/linux/timex.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +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_maxerror; /* maximum error */
extern long time_esterror; /* estimated error */

extern long time_adjust; /* The amount of adjtime left */

extern void ntp_init(void);
Expand Down
4 changes: 2 additions & 2 deletions kernel/time/ntp.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ static s64 time_offset;
static long time_constant = 2;

/* maximum error (usecs): */
long time_maxerror = NTP_PHASE_LIMIT;
static long time_maxerror = NTP_PHASE_LIMIT;

/* estimated error (usecs): */
long time_esterror = NTP_PHASE_LIMIT;
static long time_esterror = NTP_PHASE_LIMIT;

/* frequency offset (scaled nsecs/secs): */
static s64 time_freq;
Expand Down

0 comments on commit 1f5b8f8

Please sign in to comment.