17f4dd379Sjsg /* Public domain. */ 27f4dd379Sjsg 37f4dd379Sjsg #ifndef _LINUX_HRTIMER_H 47f4dd379Sjsg #define _LINUX_HRTIMER_H 57f4dd379Sjsg 67f4dd379Sjsg #include <sys/types.h> 77f4dd379Sjsg #include <sys/timeout.h> 87f4dd379Sjsg #include <linux/rbtree.h> 97f4dd379Sjsg 107f4dd379Sjsg enum hrtimer_restart { HRTIMER_NORESTART, HRTIMER_RESTART }; 117f4dd379Sjsg struct hrtimer { 127f4dd379Sjsg enum hrtimer_restart (*function)(struct hrtimer *); 137f4dd379Sjsg }; 147f4dd379Sjsg 157f4dd379Sjsg #define HRTIMER_MODE_REL 1 167f4dd379Sjsg 17*5ca02815Sjsg #define hrtimer_cancel(x) timeout_del_barrier(x) 18*5ca02815Sjsg #define hrtimer_try_to_cancel(x) timeout_del(x) /* XXX ret -1 if running */ 197f4dd379Sjsg #define hrtimer_active(x) timeout_pending(x) 207f4dd379Sjsg 217f4dd379Sjsg #endif 22