aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2011-08-10 15:09:24 -0400
committerJohn Stultz <john.stultz@linaro.org>2011-08-10 17:55:26 -0400
commit9e26476243e438f4534a562660c1296a15a9e202 (patch)
treed70609d91f0aab85ad9768500b7e57623d9e3eae /include
parentd77e23accec56bf2ba12187fe77a2f500a511282 (diff)
alarmtimers: Remove period from alarm structure
Now that periodic alarmtimers are managed by the handler function, remove the period value from the alarm structure and let the handlers manage the interval on their own. CC: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/alarmtimer.h3
-rw-r--r--include/linux/posix-timers.h5
2 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/alarmtimer.h b/include/linux/alarmtimer.h
index 17535963b274..c854a8efa863 100644
--- a/include/linux/alarmtimer.h
+++ b/include/linux/alarmtimer.h
@@ -30,7 +30,6 @@ enum alarmtimer_restart {
30 */ 30 */
31struct alarm { 31struct alarm {
32 struct timerqueue_node node; 32 struct timerqueue_node node;
33 ktime_t period;
34 enum alarmtimer_restart (*function)(struct alarm *, ktime_t now); 33 enum alarmtimer_restart (*function)(struct alarm *, ktime_t now);
35 enum alarmtimer_type type; 34 enum alarmtimer_type type;
36 bool enabled; 35 bool enabled;
@@ -39,7 +38,7 @@ struct alarm {
39 38
40void alarm_init(struct alarm *alarm, enum alarmtimer_type type, 39void alarm_init(struct alarm *alarm, enum alarmtimer_type type,
41 enum alarmtimer_restart (*function)(struct alarm *, ktime_t)); 40 enum alarmtimer_restart (*function)(struct alarm *, ktime_t));
42void alarm_start(struct alarm *alarm, ktime_t start, ktime_t period); 41void alarm_start(struct alarm *alarm, ktime_t start);
43void alarm_cancel(struct alarm *alarm); 42void alarm_cancel(struct alarm *alarm);
44 43
45u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval); 44u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval);
diff --git a/include/linux/posix-timers.h b/include/linux/posix-timers.h
index 959c14132f46..042058fdb0af 100644
--- a/include/linux/posix-timers.h
+++ b/include/linux/posix-timers.h
@@ -81,7 +81,10 @@ struct k_itimer {
81 unsigned long incr; 81 unsigned long incr;
82 unsigned long expires; 82 unsigned long expires;
83 } mmtimer; 83 } mmtimer;
84 struct alarm alarmtimer; 84 struct {
85 struct alarm alarmtimer;
86 ktime_t interval;
87 } alarm;
85 struct rcu_head rcu; 88 struct rcu_head rcu;
86 } it; 89 } it;
87}; 90};