]> git.baikalelectronics.ru Git - kernel.git/commit
tick/sched: Reduce seqcount held scope in tick_do_update_jiffies64()
authorYunfeng Ye <yeyunfeng@huawei.com>
Tue, 17 Nov 2020 13:19:46 +0000 (14:19 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 19 Nov 2020 09:48:29 +0000 (10:48 +0100)
commita8e09f156967a67b62b5efc53fadf841d5180be0
treeaaa1c3966d314e14a15da94422c0ae1134026a2f
parenta1a4600a6b03d12bb52001ce5b45aedc7ce19679
tick/sched: Reduce seqcount held scope in tick_do_update_jiffies64()

If jiffies are up to date already (caller lost the race against another
CPU) there is no point to change the sequence count. Doing that just forces
other CPUs into the seqcount retry loop in tick_nohz_next_event() for
nothing.

Just bail out early.

[ tglx: Rewrote most of it ]

Signed-off-by: Yunfeng Ye <yeyunfeng@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20201117132006.462195901@linutronix.de
kernel/time/tick-sched.c