timers: Restructure internal locking
authorRichard Cochran (linutronix GmbH) <richardcochran@gmail.com>
Wed, 21 Feb 2024 09:05:42 +0000 (10:05 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 22 Feb 2024 16:52:31 +0000 (17:52 +0100)
commit90f5df66c86c259d61aff84e16f519fe1424e1ef
treea97ec20fe744d962b928ad82ee9cb495ab43fd5a
parentf73d9257ff3c2f415e8c342a91b7f5acfc3ce512
timers: Restructure internal locking

Move the locking out from __run_timers() to the call sites, so the
protected section can be extended at the call site. Preparatory work for
changing the NOHZ timer placement to a pull at expiry time model.

No functional change.

Signed-off-by: Richard Cochran (linutronix GmbH) <richardcochran@gmail.com>
Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lore.kernel.org/r/20240221090548.36600-15-anna-maria@linutronix.de
kernel/time/timer.c