]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clocksource: Do pairwise clock-desynchronization checking
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 22 Dec 2020 21:23:46 +0000 (13:23 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 2 Apr 2021 19:34:35 +0000 (12:34 -0700)
commit6f40fef54073777257197b3254236d9289e764c7
treef15125d89a809e2fbb43ba3eca80da25c4f48714
parent9c4864334b4384292cae69c2dfa4806a1010eae0
clocksource: Do pairwise clock-desynchronization checking

Although smp_call_function() has the advantage of simplicity, using
it to check for cross-CPU clock desynchronization means that any CPU
being slow reduces the sensitivity of the checking across all CPUs.
And it is not uncommon for smp_call_function() latencies to be in the
hundreds of microseconds.

This commit therefore switches to smp_call_function_single(), so that
delays from a given CPU affect only those measurements involving that
particular CPU.

Cc: John Stultz <john.stultz@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Mark Rutland <Mark.Rutland@arm.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Reported-by: Chris Mason <clm@fb.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/time/clocksource.c