diff options
author | john stultz <johnstul@us.ibm.com> | 2010-01-28 18:02:41 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-01-29 04:15:19 -0500 |
commit | 1f5b8f8a2031ae9507eb67743cad4d424739bfff (patch) | |
tree | da8cad7941ea5c9a953f65cabc64a5c4bc57fde4 | |
parent | 64a028a6de08545a2c94f302bc7694bf48aee5b5 (diff) |
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>
-rw-r--r-- | include/linux/timex.h | 3 | ||||
-rw-r--r-- | kernel/time/ntp.c | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/include/linux/timex.h b/include/linux/timex.h index 94f8faecdcbc..7a082b32d8e1 100644 --- a/include/linux/timex.h +++ b/include/linux/timex.h | |||
@@ -238,9 +238,6 @@ extern int tickadj; /* amount of adjustment per tick */ | |||
238 | * phase-lock loop variables | 238 | * phase-lock loop variables |
239 | */ | 239 | */ |
240 | extern int time_status; /* clock synchronization status bits */ | 240 | extern int time_status; /* clock synchronization status bits */ |
241 | extern long time_maxerror; /* maximum error */ | ||
242 | extern long time_esterror; /* estimated error */ | ||
243 | |||
244 | extern long time_adjust; /* The amount of adjtime left */ | 241 | extern long time_adjust; /* The amount of adjtime left */ |
245 | 242 | ||
246 | extern void ntp_init(void); | 243 | extern void ntp_init(void); |
diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c index 4800f933910e..74b1b37b1595 100644 --- a/kernel/time/ntp.c +++ b/kernel/time/ntp.c | |||
@@ -58,10 +58,10 @@ static s64 time_offset; | |||
58 | static long time_constant = 2; | 58 | static long time_constant = 2; |
59 | 59 | ||
60 | /* maximum error (usecs): */ | 60 | /* maximum error (usecs): */ |
61 | long time_maxerror = NTP_PHASE_LIMIT; | 61 | static long time_maxerror = NTP_PHASE_LIMIT; |
62 | 62 | ||
63 | /* estimated error (usecs): */ | 63 | /* estimated error (usecs): */ |
64 | long time_esterror = NTP_PHASE_LIMIT; | 64 | static long time_esterror = NTP_PHASE_LIMIT; |
65 | 65 | ||
66 | /* frequency offset (scaled nsecs/secs): */ | 66 | /* frequency offset (scaled nsecs/secs): */ |
67 | static s64 time_freq; | 67 | static s64 time_freq; |