drm/panfrost: Remove set but not used variable 'bo'
[linux/fpc-iii.git] / include / linux / timekeeping32.h
blobcc59cc9e0e841dc8980882837afb03a5ae10a51e
1 #ifndef _LINUX_TIMEKEEPING32_H
2 #define _LINUX_TIMEKEEPING32_H
3 /*
4 * These interfaces are all based on the old timespec type
5 * and should get replaced with the timespec64 based versions
6 * over time so we can remove the file here.
7 */
9 static inline unsigned long get_seconds(void)
11 return ktime_get_real_seconds();
14 static inline void getnstimeofday(struct timespec *ts)
16 struct timespec64 ts64;
18 ktime_get_real_ts64(&ts64);
19 *ts = timespec64_to_timespec(ts64);
22 static inline void ktime_get_ts(struct timespec *ts)
24 struct timespec64 ts64;
26 ktime_get_ts64(&ts64);
27 *ts = timespec64_to_timespec(ts64);
30 static inline void getrawmonotonic(struct timespec *ts)
32 struct timespec64 ts64;
34 ktime_get_raw_ts64(&ts64);
35 *ts = timespec64_to_timespec(ts64);
38 static inline void getboottime(struct timespec *ts)
40 struct timespec64 ts64;
42 getboottime64(&ts64);
43 *ts = timespec64_to_timespec(ts64);
46 #endif