aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/time/timekeeping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c
index 1dbf80ec7696..a5a9389c4c30 100644
--- a/kernel/time/timekeeping.c
+++ b/kernel/time/timekeeping.c
@@ -1184,9 +1184,9 @@ static void update_wall_time(void)
1184 * the vsyscall implementations are converted to use xtime_nsec 1184 * the vsyscall implementations are converted to use xtime_nsec
1185 * (shifted nanoseconds), this can be killed. 1185 * (shifted nanoseconds), this can be killed.
1186 */ 1186 */
1187 remainder = tk->xtime_nsec & ((1 << tk->shift) - 1); 1187 remainder = tk->xtime_nsec & ((1ULL << tk->shift) - 1);
1188 tk->xtime_nsec -= remainder; 1188 tk->xtime_nsec -= remainder;
1189 tk->xtime_nsec += 1 << tk->shift; 1189 tk->xtime_nsec += 1ULL << tk->shift;
1190 tk->ntp_error += remainder << tk->ntp_error_shift; 1190 tk->ntp_error += remainder << tk->ntp_error_shift;
1191 1191
1192 /* 1192 /*