summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/include/linux/hrtimer.h
blob: d0d9b5e170328783487836842369ad92d43cfb3a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Public domain. */

#ifndef _LINUX_HRTIMER_H
#define _LINUX_HRTIMER_H

#include <sys/types.h>
#include <sys/timeout.h>
#include <linux/ktime.h>
#include <linux/rbtree.h>

enum hrtimer_restart { HRTIMER_NORESTART, HRTIMER_RESTART };
struct hrtimer {
	enum hrtimer_restart	(*function)(struct hrtimer *);
};

#define HRTIMER_MODE_REL	1

#define hrtimer_cancel(x)	timeout_del(x)
#define hrtimer_active(x)	timeout_pending(x)

#endif