diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/time.h | 2 | ||||
-rw-r--r-- | include/linux/timekeeper_internal.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/time.h b/include/linux/time.h index d4835dfdf25e..47210a175e78 100644 --- a/include/linux/time.h +++ b/include/linux/time.h | |||
@@ -181,6 +181,8 @@ extern struct timespec timespec_trunc(struct timespec t, unsigned gran); | |||
181 | extern int timekeeping_valid_for_hres(void); | 181 | extern int timekeeping_valid_for_hres(void); |
182 | extern u64 timekeeping_max_deferment(void); | 182 | extern u64 timekeeping_max_deferment(void); |
183 | extern int timekeeping_inject_offset(struct timespec *ts); | 183 | extern int timekeeping_inject_offset(struct timespec *ts); |
184 | extern s32 timekeeping_get_tai_offset(void); | ||
185 | extern void timekeeping_set_tai_offset(s32 tai_offset); | ||
184 | 186 | ||
185 | struct tms; | 187 | struct tms; |
186 | extern void do_sys_times(struct tms *); | 188 | extern void do_sys_times(struct tms *); |
diff --git a/include/linux/timekeeper_internal.h b/include/linux/timekeeper_internal.h index e1d558e237ec..ff94f436f8b7 100644 --- a/include/linux/timekeeper_internal.h +++ b/include/linux/timekeeper_internal.h | |||
@@ -62,6 +62,9 @@ struct timekeeper { | |||
62 | ktime_t offs_boot; | 62 | ktime_t offs_boot; |
63 | /* The raw monotonic time for the CLOCK_MONOTONIC_RAW posix clock. */ | 63 | /* The raw monotonic time for the CLOCK_MONOTONIC_RAW posix clock. */ |
64 | struct timespec raw_time; | 64 | struct timespec raw_time; |
65 | /* The current UTC to TAI offset in seconds */ | ||
66 | s32 tai_offset; | ||
67 | |||
65 | /* Seqlock for all timekeeper values */ | 68 | /* Seqlock for all timekeeper values */ |
66 | seqlock_t lock; | 69 | seqlock_t lock; |
67 | }; | 70 | }; |