diff options
Diffstat (limited to 'kernel/time/timekeeping.c')
-rw-r--r-- | kernel/time/timekeeping.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 2b021b0e8507..e65ff3171102 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c | |||
@@ -820,6 +820,13 @@ static void timekeeping_adjust(s64 offset) | |||
820 | } else | 820 | } else |
821 | return; | 821 | return; |
822 | 822 | ||
823 | WARN_ONCE(timekeeper.clock->maxadj && | ||
824 | (timekeeper.mult + adj > timekeeper.clock->mult + | ||
825 | timekeeper.clock->maxadj), | ||
826 | "Adjusting %s more then 11%% (%ld vs %ld)\n", | ||
827 | timekeeper.clock->name, (long)timekeeper.mult + adj, | ||
828 | (long)timekeeper.clock->mult + | ||
829 | timekeeper.clock->maxadj); | ||
823 | timekeeper.mult += adj; | 830 | timekeeper.mult += adj; |
824 | timekeeper.xtime_interval += interval; | 831 | timekeeper.xtime_interval += interval; |
825 | timekeeper.xtime_nsec -= offset; | 832 | timekeeper.xtime_nsec -= offset; |