]> www.infradead.org Git - users/willy/linux.git/commit
tick/broadcast: Allow late registered device to enter oneshot mode
authorJindong Yue <jindong.yue@nxp.com>
Wed, 31 Mar 2021 08:33:18 +0000 (16:33 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 16 Apr 2021 19:03:50 +0000 (21:03 +0200)
commit9c336c9935cff267470bb3aaa85c66fac194b650
treebab94e9be90d594b1743c5bd98a89eed3f6cdf86
parentd7840aaadd6e84915866a8f0dab586f6107dadf1
tick/broadcast: Allow late registered device to enter oneshot mode

The broadcast device is switched to oneshot mode when the system switches
to oneshot mode. If a broadcast clock event device is registered after the
system switched to oneshot mode, it will stay in periodic mode forever.

Ensure that a late registered device which is selected as broadcast device
is initialized in oneshot mode when the system already uses oneshot mode.

[ tglx: Massage changelog ]

Signed-off-by: Jindong Yue <jindong.yue@nxp.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20210331083318.21794-1-jindong.yue@nxp.com
kernel/time/tick-broadcast.c