3af8699aee
When some CPUs cycle out of s2idle due to non-wakeup IRQs, it's possible for them to run while the CPU responsible for jiffies updates remains idle. This can delay the execution of timers indefinitely until the CPU managing the jiffies updates finally wakes up, by which point everything could be dead if enough time passes. Fix it by handing off timekeeping duties when the timekeeping CPU enters s2idle and freezes its tick. When all CPUs are in s2idle, the first one to wake up for any reason (either from a wakeup IRQ or non-wakeup IRQ) will assume responsibility for the timekeeping tick. Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com> Signed-off-by: Panchajanya1999 <kernel@panchajanya.dev> (cherry picked from commit 717100653a78c63fe56b95721fffee5fad96ee91) (cherry picked from commit 83196f829f9e2d4aef6a4d30ac449a7bfc985208) (cherry picked from commit ab251b18b95c2fe80f457dabdf2e7132a6b0ea27) (cherry picked from commit e58369f386e19f02bc5db1a155040e54dd201a60) |
||
---|---|---|
.. | ||
alarmtimer.c | ||
clockevents.c | ||
clocksource.c | ||
hrtimer.c | ||
itimer.c | ||
jiffies.c | ||
Kconfig | ||
Makefile | ||
namespace.c | ||
ntp.c | ||
ntp_internal.h | ||
posix-clock.c | ||
posix-cpu-timers.c | ||
posix-stubs.c | ||
posix-timers.c | ||
posix-timers.h | ||
sched_clock.c | ||
test_udelay.c | ||
tick-broadcast-hrtimer.c | ||
tick-broadcast.c | ||
tick-common.c | ||
tick-internal.h | ||
tick-oneshot.c | ||
tick-sched.c | ||
tick-sched.h | ||
time.c | ||
timeconst.bc | ||
timeconv.c | ||
timecounter.c | ||
timekeeping.c | ||
timekeeping.h | ||
timekeeping_debug.c | ||
timekeeping_internal.h | ||
timer.c | ||
timer_list.c | ||
vsyscall.c |