Commit 26dae4c8 authored by Waiman Long's avatar Waiman Long Committed by Greg Kroah-Hartman
Browse files

clocksource: Reduce the default clocksource_watchdog() retries to 2



[ Upstream commit 1a562067 ]

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: default avatarPaul E. McKenney <paulmck@kernel.org>
Signed-off-by: default avatarWaiman Long <longman@redhat.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
Stable-dep-of: f2655ac2 ("clocksource: Fix brown-bag boolean thinko in cs_watchdog_read()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent a7040173
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment