|
13 | 13 | #define _LINUX_HRTIMER_H
|
14 | 14 |
|
15 | 15 | #include <linux/hrtimer_defs.h>
|
16 |
| -#include <linux/rbtree.h> |
| 16 | +#include <linux/hrtimer_types.h> |
17 | 17 | #include <linux/init.h>
|
18 | 18 | #include <linux/list.h>
|
19 | 19 | #include <linux/percpu-defs.h>
|
| 20 | +#include <linux/rbtree.h> |
20 | 21 | #include <linux/seqlock.h>
|
21 | 22 | #include <linux/timer.h>
|
22 |
| -#include <linux/timerqueue.h> |
23 | 23 |
|
24 | 24 | struct hrtimer_clock_base;
|
25 | 25 | struct hrtimer_cpu_base;
|
@@ -59,14 +59,6 @@ enum hrtimer_mode {
|
59 | 59 | HRTIMER_MODE_REL_PINNED_HARD = HRTIMER_MODE_REL_PINNED | HRTIMER_MODE_HARD,
|
60 | 60 | };
|
61 | 61 |
|
62 |
| -/* |
63 |
| - * Return values for the callback function |
64 |
| - */ |
65 |
| -enum hrtimer_restart { |
66 |
| - HRTIMER_NORESTART, /* Timer is not restarted */ |
67 |
| - HRTIMER_RESTART, /* Timer must be restarted */ |
68 |
| -}; |
69 |
| - |
70 | 62 | /*
|
71 | 63 | * Values to track state of the timer
|
72 | 64 | *
|
@@ -94,38 +86,6 @@ enum hrtimer_restart {
|
94 | 86 | #define HRTIMER_STATE_INACTIVE 0x00
|
95 | 87 | #define HRTIMER_STATE_ENQUEUED 0x01
|
96 | 88 |
|
97 |
| -/** |
98 |
| - * struct hrtimer - the basic hrtimer structure |
99 |
| - * @node: timerqueue node, which also manages node.expires, |
100 |
| - * the absolute expiry time in the hrtimers internal |
101 |
| - * representation. The time is related to the clock on |
102 |
| - * which the timer is based. Is setup by adding |
103 |
| - * slack to the _softexpires value. For non range timers |
104 |
| - * identical to _softexpires. |
105 |
| - * @_softexpires: the absolute earliest expiry time of the hrtimer. |
106 |
| - * The time which was given as expiry time when the timer |
107 |
| - * was armed. |
108 |
| - * @function: timer expiry callback function |
109 |
| - * @base: pointer to the timer base (per cpu and per clock) |
110 |
| - * @state: state information (See bit values above) |
111 |
| - * @is_rel: Set if the timer was armed relative |
112 |
| - * @is_soft: Set if hrtimer will be expired in soft interrupt context. |
113 |
| - * @is_hard: Set if hrtimer will be expired in hard interrupt context |
114 |
| - * even on RT. |
115 |
| - * |
116 |
| - * The hrtimer structure must be initialized by hrtimer_init() |
117 |
| - */ |
118 |
| -struct hrtimer { |
119 |
| - struct timerqueue_node node; |
120 |
| - ktime_t _softexpires; |
121 |
| - enum hrtimer_restart (*function)(struct hrtimer *); |
122 |
| - struct hrtimer_clock_base *base; |
123 |
| - u8 state; |
124 |
| - u8 is_rel; |
125 |
| - u8 is_soft; |
126 |
| - u8 is_hard; |
127 |
| -}; |
128 |
| - |
129 | 89 | /**
|
130 | 90 | * struct hrtimer_sleeper - simple sleeper structure
|
131 | 91 | * @timer: embedded timer structure
|
|
0 commit comments