aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/time.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/time.h b/include/linux/time.h
index 0015aea4c4a7..dfbc4e82e8ba 100644
--- a/include/linux/time.h
+++ b/include/linux/time.h
@@ -115,6 +115,12 @@ static inline bool timespec_valid_strict(const struct timespec *ts)
115 return true; 115 return true;
116} 116}
117 117
118extern bool persistent_clock_exist;
119static inline bool has_persistent_clock(void)
120{
121 return persistent_clock_exist;
122}
123
118extern void read_persistent_clock(struct timespec *ts); 124extern void read_persistent_clock(struct timespec *ts);
119extern void read_boot_clock(struct timespec *ts); 125extern void read_boot_clock(struct timespec *ts);
120extern int update_persistent_clock(struct timespec now); 126extern int update_persistent_clock(struct timespec now);