diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2007-10-12 17:04:06 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@inhelltoy.tec.linutronix.de> | 2007-10-12 17:04:06 -0400 |
commit | c8a1d398de70a7774359b4720c392891cdd485f9 (patch) | |
tree | d49de224f33705dd9549d338605578a84dbddf04 /kernel/time/tick-broadcast.c | |
parent | de68d9b173ee657115dd0e584c2365b7954253a5 (diff) |
clockevents: fix periodic broadcast for oneshot devices
The next_event member of the clock event device is used to keep track
of the next periodic event. For one shot only devices it is wrong to
clear the variable, as the next event will be based on it.
Pointed out by Ralf Baechle
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Diffstat (limited to 'kernel/time/tick-broadcast.c')
-rw-r--r-- | kernel/time/tick-broadcast.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c index 0962e0577660..acf15b49e55b 100644 --- a/kernel/time/tick-broadcast.c +++ b/kernel/time/tick-broadcast.c | |||
@@ -176,8 +176,6 @@ static void tick_do_periodic_broadcast(void) | |||
176 | */ | 176 | */ |
177 | static void tick_handle_periodic_broadcast(struct clock_event_device *dev) | 177 | static void tick_handle_periodic_broadcast(struct clock_event_device *dev) |
178 | { | 178 | { |
179 | dev->next_event.tv64 = KTIME_MAX; | ||
180 | |||
181 | tick_do_periodic_broadcast(); | 179 | tick_do_periodic_broadcast(); |
182 | 180 | ||
183 | /* | 181 | /* |