linux/kernel/time
Thomas Gleixner 4096fd0e8e clockevents: Add missing resets of the next_event_forced flag
The prevention mechanism against timer interrupt starvation missed to reset
the next_event_forced flag in a couple of places:

    - When the clock event state changes. That can cause the flag to be
      stale over a shutdown/startup sequence

    - When a non-forced event is armed, which then prevents rearming before
      that event. If that event is far out in the future this will cause
      missed timer interrupts.

    - In the suspend wakeup handler.

That led to stalls which have been reported by several people.

Add the missing resets, which fixes the problems for the reporters.

Fixes: d6e152d905 ("clockevents: Prevent timer interrupt starvation")
Reported-by: Hanabishi <i.r.e.c.c.a.k.u.n+kernel.org@gmail.com>
Reported-by: Eric Naim <dnaim@cachyos.org>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Tested-by: Hanabishi <i.r.e.c.c.a.k.u.n+kernel.org@gmail.com>
Tested-by: Eric Naim <dnaim@cachyos.org>
Cc: stable@vger.kernel.org
Closes: https://lore.kernel.org/68d1e9ac-2780-4be3-8ee3-0788062dd3a4@gmail.com
Link: https://patch.msgid.link/87340xfeje.ffs@tglx
2026-04-16 21:22:04 +02:00
..
.kunitconfig
Kconfig Update to the VDSO subsystem: 2026-04-14 10:53:44 -07:00
Makefile
alarmtimer.c Merge branch 'timers/urgent' into timers/core 2026-04-11 07:58:33 +02:00
clockevents.c clockevents: Add missing resets of the next_event_forced flag 2026-04-16 21:22:04 +02:00
clocksource-wdtest.c
clocksource.c
hrtimer.c Merge branch 'timers/urgent' into timers/core 2026-04-11 07:58:33 +02:00
itimer.c
jiffies.c
namespace.c
namespace_internal.h
namespace_vdso.c mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
ntp.c
ntp_internal.h
posix-clock.c
posix-cpu-timers.c
posix-stubs.c
posix-timers.c
posix-timers.h
sched_clock.c
sleep_timeout.c
test_udelay.c
tick-broadcast-hrtimer.c
tick-broadcast.c clockevents: Add missing resets of the next_event_forced flag 2026-04-16 21:22:04 +02:00
tick-common.c clockevents: Prevent timer interrupt starvation 2026-04-10 22:45:38 +02:00
tick-internal.h
tick-legacy.c
tick-oneshot.c
tick-sched.c Merge branch 'timers/urgent' into timers/core 2026-04-11 07:58:33 +02:00
tick-sched.h
time.c
time_test.c
timeconst.bc
timeconv.c
timecounter.c
timekeeping.c
timekeeping.h
timekeeping_debug.c
timekeeping_internal.h
timer.c
timer_list.c
timer_migration.c
timer_migration.h
vsyscall.c