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/rbtree.h>
9
10enum hrtimer_restart { HRTIMER_NORESTART, HRTIMER_RESTART };
11struct hrtimer {
12	enum hrtimer_restart	(*function)(struct hrtimer *);
13};
14
15#define HRTIMER_MODE_REL	1
16
17#define hrtimer_cancel(x)		timeout_del_barrier(x)
18#define hrtimer_try_to_cancel(x)	timeout_del(x)	/* XXX ret -1 if running */
19#define hrtimer_active(x)		timeout_pending(x)
20
21#endif
22