diff options
Diffstat (limited to 'include/linux/time.h')
-rw-r--r-- | include/linux/time.h | 45 |
1 files changed, 4 insertions, 41 deletions
diff --git a/include/linux/time.h b/include/linux/time.h index 234feac7f1c3..8c42cf8d2444 100644 --- a/include/linux/time.h +++ b/include/linux/time.h | |||
@@ -99,25 +99,7 @@ static inline bool timespec_valid_strict(const struct timespec *ts) | |||
99 | return true; | 99 | return true; |
100 | } | 100 | } |
101 | 101 | ||
102 | extern bool persistent_clock_exist; | 102 | extern struct timespec timespec_trunc(struct timespec t, unsigned gran); |
103 | |||
104 | static inline bool has_persistent_clock(void) | ||
105 | { | ||
106 | return persistent_clock_exist; | ||
107 | } | ||
108 | |||
109 | extern void read_persistent_clock(struct timespec *ts); | ||
110 | extern void read_boot_clock(struct timespec *ts); | ||
111 | extern int persistent_clock_is_local; | ||
112 | extern int update_persistent_clock(struct timespec now); | ||
113 | void timekeeping_init(void); | ||
114 | extern int timekeeping_suspended; | ||
115 | |||
116 | unsigned long get_seconds(void); | ||
117 | struct timespec current_kernel_time(void); | ||
118 | struct timespec __current_kernel_time(void); /* does not take xtime_lock */ | ||
119 | struct timespec get_monotonic_coarse(void); | ||
120 | void timekeeping_inject_sleeptime(struct timespec *delta); | ||
121 | 103 | ||
122 | #define CURRENT_TIME (current_kernel_time()) | 104 | #define CURRENT_TIME (current_kernel_time()) |
123 | #define CURRENT_TIME_SEC ((struct timespec) { get_seconds(), 0 }) | 105 | #define CURRENT_TIME_SEC ((struct timespec) { get_seconds(), 0 }) |
@@ -135,33 +117,14 @@ void timekeeping_inject_sleeptime(struct timespec *delta); | |||
135 | extern u32 (*arch_gettimeoffset)(void); | 117 | extern u32 (*arch_gettimeoffset)(void); |
136 | #endif | 118 | #endif |
137 | 119 | ||
138 | extern void do_gettimeofday(struct timeval *tv); | ||
139 | extern int do_settimeofday(const struct timespec *tv); | ||
140 | extern int do_sys_settimeofday(const struct timespec *tv, | ||
141 | const struct timezone *tz); | ||
142 | #define do_posix_clock_monotonic_gettime(ts) ktime_get_ts(ts) | ||
143 | extern long do_utimes(int dfd, const char __user *filename, struct timespec *times, int flags); | ||
144 | struct itimerval; | 120 | struct itimerval; |
145 | extern int do_setitimer(int which, struct itimerval *value, | 121 | extern int do_setitimer(int which, struct itimerval *value, |
146 | struct itimerval *ovalue); | 122 | struct itimerval *ovalue); |
147 | extern unsigned int alarm_setitimer(unsigned int seconds); | ||
148 | extern int do_getitimer(int which, struct itimerval *value); | 123 | extern int do_getitimer(int which, struct itimerval *value); |
149 | extern int __getnstimeofday(struct timespec *tv); | ||
150 | extern void getnstimeofday(struct timespec *tv); | ||
151 | extern void getrawmonotonic(struct timespec *ts); | ||
152 | extern void getnstime_raw_and_real(struct timespec *ts_raw, | ||
153 | struct timespec *ts_real); | ||
154 | extern void getboottime(struct timespec *ts); | ||
155 | extern void monotonic_to_bootbased(struct timespec *ts); | ||
156 | extern void get_monotonic_boottime(struct timespec *ts); | ||
157 | 124 | ||
158 | extern struct timespec timespec_trunc(struct timespec t, unsigned gran); | 125 | extern unsigned int alarm_setitimer(unsigned int seconds); |
159 | extern int timekeeping_valid_for_hres(void); | 126 | |
160 | extern u64 timekeeping_max_deferment(void); | 127 | extern long do_utimes(int dfd, const char __user *filename, struct timespec *times, int flags); |
161 | extern int timekeeping_inject_offset(struct timespec *ts); | ||
162 | extern s32 timekeeping_get_tai_offset(void); | ||
163 | extern void timekeeping_set_tai_offset(s32 tai_offset); | ||
164 | extern void timekeeping_clocktai(struct timespec *ts); | ||
165 | 128 | ||
166 | struct tms; | 129 | struct tms; |
167 | extern void do_sys_times(struct tms *); | 130 | extern void do_sys_times(struct tms *); |