aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time/timekeeping.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/time/timekeeping.c')
-rw-r--r--kernel/time/timekeeping.c7
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
59struct clocksource *clock; 59struct clocksource *clock;
60 60
61/* must hold xtime_lock */
62void 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/**