diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 3cd6b12a302f..826b8a687727 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -1013,7 +1013,7 @@ static cycle_t logarithmic_accumulation(cycle_t offset, int shift) } /* Accumulate raw time */ - raw_nsecs = timekeeper.raw_interval << shift; + raw_nsecs = (u64)timekeeper.raw_interval << shift; raw_nsecs += timekeeper.raw_time.tv_nsec; if (raw_nsecs >= NSEC_PER_SEC) { u64 raw_secs = raw_nsecs;