xref: /openbsd-src/sys/dev/pci/drm/include/linux/hrtimer.h (revision 99fd087599a8791921855f21bd7e36130f39aadc)
1 /* Public domain. */
2 
3 #ifndef _LINUX_HRTIMER_H
4 #define _LINUX_HRTIMER_H
5 
6 #include <sys/types.h>
7 #include <sys/timeout.h>
8 #include <linux/ktime.h>
9 #include <linux/rbtree.h>
10 
11 enum hrtimer_restart { HRTIMER_NORESTART, HRTIMER_RESTART };
12 struct hrtimer {
13 	enum hrtimer_restart	(*function)(struct hrtimer *);
14 };
15 
16 #define HRTIMER_MODE_REL	1
17 
18 #define hrtimer_cancel(x)	timeout_del(x)
19 #define hrtimer_active(x)	timeout_pending(x)
20 
21 #endif
22