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 02c0b2c9c674..b8b70fb545fc 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c | |||
@@ -58,6 +58,13 @@ void update_xtime_cache(u64 nsec) | |||
58 | 58 | ||
59 | struct clocksource *clock; | 59 | struct clocksource *clock; |
60 | 60 | ||
61 | /* must hold xtime_lock */ | ||
62 | void timekeeping_leap_insert(int leapsecond) | ||
63 | { | ||
64 | xtime.tv_sec += leapsecond; | ||
65 | wall_to_monotonic.tv_sec -= leapsecond; | ||
66 | update_vsyscall(&xtime, clock); | ||
67 | } | ||
61 | 68 | ||
62 | #ifdef CONFIG_GENERIC_TIME | 69 | #ifdef CONFIG_GENERIC_TIME |
63 | /** | 70 | /** |