aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time/ntp.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/time/ntp.c')
-rw-r--r--kernel/time/ntp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c
index 4346ed6e623f..7447d57e021a 100644
--- a/kernel/time/ntp.c
+++ b/kernel/time/ntp.c
@@ -408,7 +408,7 @@ static inline void process_adjtimex_modes(struct timex *txc, struct timespec *ts
408 time_status &= ~STA_NANO; 408 time_status &= ~STA_NANO;
409 409
410 if (txc->modes & ADJ_FREQUENCY) { 410 if (txc->modes & ADJ_FREQUENCY) {
411 time_freq = (s64)txc->freq * PPM_SCALE; 411 time_freq = txc->freq * PPM_SCALE;
412 time_freq = min(time_freq, MAXFREQ_SCALED); 412 time_freq = min(time_freq, MAXFREQ_SCALED);
413 time_freq = max(time_freq, -MAXFREQ_SCALED); 413 time_freq = max(time_freq, -MAXFREQ_SCALED);
414 } 414 }
@@ -505,7 +505,7 @@ int do_adjtimex(struct timex *txc)
505 result = TIME_ERROR; 505 result = TIME_ERROR;
506 506
507 txc->freq = shift_right((time_freq >> PPM_SCALE_INV_SHIFT) * 507 txc->freq = shift_right((time_freq >> PPM_SCALE_INV_SHIFT) *
508 (s64)PPM_SCALE_INV, NTP_SCALE_SHIFT); 508 PPM_SCALE_INV, NTP_SCALE_SHIFT);
509 txc->maxerror = time_maxerror; 509 txc->maxerror = time_maxerror;
510 txc->esterror = time_esterror; 510 txc->esterror = time_esterror;
511 txc->status = time_status; 511 txc->status = time_status;