Skip to contentSkip to conversation

clockevents: fix bogus next_event reset for oneshot broadcast devices

PATCH New Thomas Gleixner 1 participant 1 message Sep 27, 2007 Nohz, dynticks support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clockevents: fix bogus next_event reset for oneshot broadcast devices

In periodic broadcast mode the next_event member of the broadcast device structure is set to KTIME_MAX in the interrupt handler. This is wrong, as we calculate the next periodic interrupt with this variable.

Remove it.

Noticed by Ralf. MIPS is the first user of this mode, it does not affect existing users.

---

kernel/time/tick-broadcast.c +0 -2
index 0962e05..acf15b4 100644
@@ -176,8 +176,6 @@ static void tick_do_periodic_broadcast(void)
  */
 static void tick_handle_periodic_broadcast(struct clock_event_device *dev)
 {
-	dev->next_event.tv64 = KTIME_MAX;
-
 	tick_do_periodic_broadcast();
 
 	/*