]> git.baikalelectronics.ru Git - kernel.git/commit
tick/common: Touch watchdog in tick_unfreeze() on all CPUs
authorChunyan Zhang <zhang.lyra@gmail.com>
Fri, 10 Jan 2020 08:39:02 +0000 (16:39 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 15 Jan 2020 20:29:45 +0000 (21:29 +0100)
commit54182a1cd253855ac1c706dd83012b497793ba70
tree3677dabbfcfbee8ddc9d3c709c8892c460a1cc45
parent53f2188b18a116a84c6553681eeffc6ccbf25e1c
tick/common: Touch watchdog in tick_unfreeze() on all CPUs

Suspend to IDLE invokes tick_unfreeze() on resume. tick_unfreeze() on the
first resuming CPU resumes timekeeping, which also has the side effect of
resetting the softlockup watchdog on this CPU.

But on the secondary CPUs the watchdog is not reset in the resume /
unfreeze() path, which can result in false softlockup warnings on those
CPUs depending on the time spent in suspend.

Prevent this by clearing the softlock watchdog in the unfreeze path also
on the secondary resuming CPUs.

[ tglx: Massaged changelog ]

Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20200110083902.27276-1-chunyan.zhang@unisoc.com
kernel/time/tick-common.c