hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/time.h
....@@ -3,7 +3,6 @@
33 #define _LINUX_TIME_H
44
55 # include <linux/cache.h>
6
-# include <linux/seqlock.h>
76 # include <linux/math64.h>
87 # include <linux/time64.h>
98
....@@ -35,10 +34,11 @@
3534 extern u32 (*arch_gettimeoffset)(void);
3635 #endif
3736
38
-struct itimerval;
39
-extern int do_setitimer(int which, struct itimerval *value,
40
- struct itimerval *ovalue);
41
-extern int do_getitimer(int which, struct itimerval *value);
37
+#ifdef CONFIG_POSIX_TIMERS
38
+extern void clear_itimer(void);
39
+#else
40
+static inline void clear_itimer(void) {}
41
+#endif
4242
4343 extern long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, int flags);
4444