|
@@ -99,25 +99,7 @@ static inline bool timespec_valid_strict(const struct timespec *ts)
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
-extern bool persistent_clock_exist;
|
|
|
|
-
|
|
|
|
-static inline bool has_persistent_clock(void)
|
|
|
|
-{
|
|
|
|
- return persistent_clock_exist;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-extern void read_persistent_clock(struct timespec *ts);
|
|
|
|
-extern void read_boot_clock(struct timespec *ts);
|
|
|
|
-extern int persistent_clock_is_local;
|
|
|
|
-extern int update_persistent_clock(struct timespec now);
|
|
|
|
-void timekeeping_init(void);
|
|
|
|
-extern int timekeeping_suspended;
|
|
|
|
-
|
|
|
|
-unsigned long get_seconds(void);
|
|
|
|
-struct timespec current_kernel_time(void);
|
|
|
|
-struct timespec __current_kernel_time(void); /* does not take xtime_lock */
|
|
|
|
-struct timespec get_monotonic_coarse(void);
|
|
|
|
-void timekeeping_inject_sleeptime(struct timespec *delta);
|
|
|
|
|
|
+extern struct timespec timespec_trunc(struct timespec t, unsigned gran);
|
|
|
|
|
|
#define CURRENT_TIME (current_kernel_time())
|
|
#define CURRENT_TIME (current_kernel_time())
|
|
#define CURRENT_TIME_SEC ((struct timespec) { get_seconds(), 0 })
|
|
#define CURRENT_TIME_SEC ((struct timespec) { get_seconds(), 0 })
|
|
@@ -135,33 +117,14 @@ void timekeeping_inject_sleeptime(struct timespec *delta);
|
|
extern u32 (*arch_gettimeoffset)(void);
|
|
extern u32 (*arch_gettimeoffset)(void);
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-extern void do_gettimeofday(struct timeval *tv);
|
|
|
|
-extern int do_settimeofday(const struct timespec *tv);
|
|
|
|
-extern int do_sys_settimeofday(const struct timespec *tv,
|
|
|
|
- const struct timezone *tz);
|
|
|
|
-#define do_posix_clock_monotonic_gettime(ts) ktime_get_ts(ts)
|
|
|
|
-extern long do_utimes(int dfd, const char __user *filename, struct timespec *times, int flags);
|
|
|
|
struct itimerval;
|
|
struct itimerval;
|
|
extern int do_setitimer(int which, struct itimerval *value,
|
|
extern int do_setitimer(int which, struct itimerval *value,
|
|
struct itimerval *ovalue);
|
|
struct itimerval *ovalue);
|
|
-extern unsigned int alarm_setitimer(unsigned int seconds);
|
|
|
|
extern int do_getitimer(int which, struct itimerval *value);
|
|
extern int do_getitimer(int which, struct itimerval *value);
|
|
-extern int __getnstimeofday(struct timespec *tv);
|
|
|
|
-extern void getnstimeofday(struct timespec *tv);
|
|
|
|
-extern void getrawmonotonic(struct timespec *ts);
|
|
|
|
-extern void getnstime_raw_and_real(struct timespec *ts_raw,
|
|
|
|
- struct timespec *ts_real);
|
|
|
|
-extern void getboottime(struct timespec *ts);
|
|
|
|
-extern void monotonic_to_bootbased(struct timespec *ts);
|
|
|
|
-extern void get_monotonic_boottime(struct timespec *ts);
|
|
|
|
|
|
|
|
-extern struct timespec timespec_trunc(struct timespec t, unsigned gran);
|
|
|
|
-extern int timekeeping_valid_for_hres(void);
|
|
|
|
-extern u64 timekeeping_max_deferment(void);
|
|
|
|
-extern int timekeeping_inject_offset(struct timespec *ts);
|
|
|
|
-extern s32 timekeeping_get_tai_offset(void);
|
|
|
|
-extern void timekeeping_set_tai_offset(s32 tai_offset);
|
|
|
|
-extern void timekeeping_clocktai(struct timespec *ts);
|
|
|
|
|
|
+extern unsigned int alarm_setitimer(unsigned int seconds);
|
|
|
|
+
|
|
|
|
+extern long do_utimes(int dfd, const char __user *filename, struct timespec *times, int flags);
|
|
|
|
|
|
struct tms;
|
|
struct tms;
|
|
extern void do_sys_times(struct tms *);
|
|
extern void do_sys_times(struct tms *);
|