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)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 1 Dec 2021 01:22:29 +0000 (17:22 -0800)
commit1a5620671a1b6fd9cc08761677d050f1702f910c
tree4e57d639dbbb2b30439391cbe312d2fa43e7a139
parentc86ff8c55b8ae68837b2fa59dc0c203907e9a15f
clocksource: Reduce the default clocksource_watchdog() retries to 2

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>
Documentation/admin-guide/kernel-parameters.txt
kernel/time/clocksource.c