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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c
index 17fb1b9807d0..6e039b144daf 100644
--- a/kernel/time/ntp.c
+++ b/kernel/time/ntp.c
@@ -289,7 +289,7 @@ static inline s64 ntp_update_offset_fll(s64 offset64, long secs)
289 289
290 time_status |= STA_MODE; 290 time_status |= STA_MODE;
291 291
292 return div_s64(offset64 << (NTP_SCALE_SHIFT - SHIFT_FLL), secs); 292 return div64_long(offset64 << (NTP_SCALE_SHIFT - SHIFT_FLL), secs);
293} 293}
294 294
295static void ntp_update_offset(long offset) 295static void ntp_update_offset(long offset)