diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-10-01 02:28:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-01 03:39:27 -0400 |
commit | 70bc42f90a3f4721c89dbe865e6c95da8565b41c (patch) | |
tree | b98b1b19584c4dfcec283715a14a701139ea32d1 /include/linux/timex.h | |
parent | 0883d899ef862c1b0f8b2c2d38098470c193a3dd (diff) |
[PATCH] kernel/time/ntp.c: possible cleanups
This patch contains the following possible cleanups:
- make the following needlessly global function static:
- ntp_update_frequency()
- make the following needlessly global variables static:
- time_state
- time_offset
- time_constant
- time_reftime
- remove the following read-only global variable:
- time_precision
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: john stultz <johnstul@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/timex.h')
-rw-r--r-- | include/linux/timex.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/timex.h b/include/linux/timex.h index 261381b5da8..049dfe4a11f 100644 --- a/include/linux/timex.h +++ b/include/linux/timex.h | |||
@@ -198,21 +198,15 @@ extern int tickadj; /* amount of adjustment per tick */ | |||
198 | /* | 198 | /* |
199 | * phase-lock loop variables | 199 | * phase-lock loop variables |
200 | */ | 200 | */ |
201 | extern int time_state; /* clock status */ | ||
202 | extern int time_status; /* clock synchronization status bits */ | 201 | extern int time_status; /* clock synchronization status bits */ |
203 | extern long time_offset; /* time adjustment (us) */ | ||
204 | extern long time_constant; /* pll time constant */ | ||
205 | extern long time_precision; /* clock precision (us) */ | ||
206 | extern long time_maxerror; /* maximum error */ | 202 | extern long time_maxerror; /* maximum error */ |
207 | extern long time_esterror; /* estimated error */ | 203 | extern long time_esterror; /* estimated error */ |
208 | 204 | ||
209 | extern long time_freq; /* frequency offset (scaled ppm) */ | 205 | extern long time_freq; /* frequency offset (scaled ppm) */ |
210 | extern long time_reftime; /* time at last adjustment (s) */ | ||
211 | 206 | ||
212 | extern long time_adjust; /* The amount of adjtime left */ | 207 | extern long time_adjust; /* The amount of adjtime left */ |
213 | 208 | ||
214 | extern void ntp_clear(void); | 209 | extern void ntp_clear(void); |
215 | extern void ntp_update_frequency(void); | ||
216 | 210 | ||
217 | /** | 211 | /** |
218 | * ntp_synced - Returns 1 if the NTP status is not UNSYNC | 212 | * ntp_synced - Returns 1 if the NTP status is not UNSYNC |