clocksource: Improve read-back-delay message
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 13 Dec 2022 21:57:28 +0000 (13:57 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 4 Jan 2023 04:43:45 +0000 (20:43 -0800)
commitf092eb34b33043152bfb8a4ca01db9a06728261d
tree06e8f71d54ea7a9a91fb150b807795e330897bdb
parentc37e85c135cead4256dc8860073c468d8925c3df
clocksource: Improve read-back-delay message

When cs_watchdog_read() is unable to get a qualifying clocksource read
within the limit set by max_cswd_read_retries, it prints a message
and marks the clocksource under test as unstable.  But that message is
unclear to anyone unfamiliar with the code:

clocksource: timekeeping watchdog on CPU13: wd-tsc-wd read-back delay 1000614ns, attempt 3, marking unstable

Therefore, add some context so that the message appears as follows:

clocksource: timekeeping watchdog on CPU13: wd-tsc-wd excessive read-back delay of 1000614ns vs. limit of 125000ns, wd-wd read-back delay only 27ns, attempt 3, marking tsc unstable

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: John Stultz <jstultz@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Feng Tang <feng.tang@intel.com>
kernel/time/clocksource.c