Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clocksource: Add CPU info to clocksource watchdog reporting

The clocksource watchdog reporting was improved by 0b046b217ad4c6.
I want to add the info of CPU where the watchdog detects a
deviation because it is necessary to identify the trouble spot
if the clocksource is TSC.

Signed-off-by: Seiichi Ikarashi <s.ikarashi@jp.fujitsu.com>
[jstultz: Tweaked commit message]
Signed-off-by: John Stultz <john.stultz@linaro.org>

authored by

Seiichi Ikarashi and committed by
John Stultz
390dd67c 35a4933a

+2 -2
+2 -2
kernel/time/clocksource.c
··· 218 218 219 219 /* Check the deviation from the watchdog clocksource. */ 220 220 if (abs(cs_nsec - wd_nsec) > WATCHDOG_THRESHOLD) { 221 - pr_warn("timekeeping watchdog: Marking clocksource '%s' as unstable because the skew is too large:\n", 222 - cs->name); 221 + pr_warn("timekeeping watchdog on CPU%d: Marking clocksource '%s' as unstable because the skew is too large:\n", 222 + smp_processor_id(), cs->name); 223 223 pr_warn(" '%s' wd_now: %llx wd_last: %llx mask: %llx\n", 224 224 watchdog->name, wdnow, wdlast, watchdog->mask); 225 225 pr_warn(" '%s' cs_now: %llx cs_last: %llx mask: %llx\n",