Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49d670fb authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

clockevents: prevent stale tick_next_period for onlining CPUs



Impact: possible hang on CPU onlining in timer one shot mode.

The tick_next_period variable is only used during boot on nohz/highres
enabled systems, but for CPU onlining it needs to be maintained when
the per cpu clock events device operates in one shot mode.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 4faac97d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -75,6 +75,9 @@ static void tick_do_update_jiffies64(ktime_t now)
							   incr * ticks);
		}
		do_timer(++ticks);

		/* Keep the tick_next_period variable up to date */
		tick_next_period = ktime_add(last_jiffies_update, tick_period);
	}
	write_sequnlock(&xtime_lock);
}