diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-03-05 15:46:18 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-03-05 15:46:18 -0500 |
| commit | 3fa04ecd72780da31ba8b329e148179bc24a9c7d (patch) | |
| tree | f5d462fd4aee086952d18f159f737c450ab46b3b /kernel/time/ntp.c | |
| parent | 180b62a3d837613fcac3ce89576526423926c3c3 (diff) | |
| parent | 1cda707d52e51a6cafac0aef12d2bd7052d572e6 (diff) | |
Merge branch 'writeback-for-2.6.34' into nfs-for-2.6.34
Diffstat (limited to 'kernel/time/ntp.c')
| -rw-r--r-- | kernel/time/ntp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c index 4800f933910e..7c0f180d6e9d 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; |
| @@ -142,11 +142,11 @@ static void ntp_update_offset(long offset) | |||
| 142 | * Select how the frequency is to be controlled | 142 | * Select how the frequency is to be controlled |
| 143 | * and in which mode (PLL or FLL). | 143 | * and in which mode (PLL or FLL). |
| 144 | */ | 144 | */ |
| 145 | secs = xtime.tv_sec - time_reftime; | 145 | secs = get_seconds() - time_reftime; |
| 146 | if (unlikely(time_status & STA_FREQHOLD)) | 146 | if (unlikely(time_status & STA_FREQHOLD)) |
| 147 | secs = 0; | 147 | secs = 0; |
| 148 | 148 | ||
| 149 | time_reftime = xtime.tv_sec; | 149 | time_reftime = get_seconds(); |
| 150 | 150 | ||
| 151 | offset64 = offset; | 151 | offset64 = offset; |
| 152 | freq_adj = (offset64 * secs) << | 152 | freq_adj = (offset64 * secs) << |
| @@ -368,7 +368,7 @@ static inline void process_adj_status(struct timex *txc, struct timespec *ts) | |||
| 368 | * reference time to current time. | 368 | * reference time to current time. |
| 369 | */ | 369 | */ |
| 370 | if (!(time_status & STA_PLL) && (txc->status & STA_PLL)) | 370 | if (!(time_status & STA_PLL) && (txc->status & STA_PLL)) |
| 371 | time_reftime = xtime.tv_sec; | 371 | time_reftime = get_seconds(); |
| 372 | 372 | ||
| 373 | /* only set allowed bits */ | 373 | /* only set allowed bits */ |
| 374 | time_status &= STA_RONLY; | 374 | time_status &= STA_RONLY; |
