]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clocksource: Reduce the default clocksource_watchdog() retries to 2
authorWaiman Long <longman@redhat.com>
Thu, 18 Nov 2021 19:14:37 +0000 (14:14 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Aug 2024 03:45:45 +0000 (05:45 +0200)
commit26dae4c8cb45e796374b5ffbb05f6c7f35369365
treed89b08654a4b26600bddb00437dde641de25c467
parenta70401730770594eb1aac7b96e73df613b062c1a
clocksource: Reduce the default clocksource_watchdog() retries to 2

[ Upstream commit 1a5620671a1b6fd9cc08761677d050f1702f910c ]

With the previous patch, there is an extra watchdog read in each retry.
Now the total number of clocksource reads is increased to 4 per iteration.
In order to avoid increasing the clock skew check overhead, the default
maximum number of retries is reduced from 3 to 2 to maintain the same 12
clocksource reads in the worst case.

Suggested-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Stable-dep-of: f2655ac2c06a ("clocksource: Fix brown-bag boolean thinko in cs_watchdog_read()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/admin-guide/kernel-parameters.txt
kernel/time/clocksource.c