clocksource: Print deviation in nanoseconds when a clocksource becomes unstable
authorFeng Tang <feng.tang@intel.com>
Thu, 27 May 2021 19:01:24 +0000 (12:01 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 22 Jun 2021 14:53:17 +0000 (16:53 +0200)
commit22a22383371667962b46bd90d534cc57669537ac
tree31cd0229155167ca5c8d69aa678122ae05cb5d06
parent1253b9b87e42ab6a3d5c2cb27af2bdd67d7e50ff
clocksource: Print deviation in nanoseconds when a clocksource becomes unstable

Currently when an unstable clocksource is detected, the raw counters of
that clocksource and watchdog will be printed, which can only be understood
after some math calculation.

So print the delta in nanoseconds as well to make it easier for humans to
check the results.

[ paulmck: Fix typo. ]

Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20210527190124.440372-6-paulmck@kernel.org
kernel/time/clocksource.c