Commit 16588f65 authored by Thomas Gleixner's avatar Thomas Gleixner

x86/tsc: Annotate printouts as firmware bug

Make it more obvious that the BIOS is screwed up.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Roland Scheidegger <rscheidegger_lists@hispeed.ch>
Cc: Bruce Schlobohm <bruce.schlobohm@intel.com>
Cc: Kevin Stanton <kevin.b.stanton@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Borislav Petkov <bp@alien8.de>
parent 5bae1562
...@@ -76,7 +76,8 @@ static void tsc_sanitize_first_cpu(struct tsc_adjust *cur, s64 bootval, ...@@ -76,7 +76,8 @@ static void tsc_sanitize_first_cpu(struct tsc_adjust *cur, s64 bootval,
* deadline timer creates an interrupt storm. Sigh! * deadline timer creates an interrupt storm. Sigh!
*/ */
if ((bootcpu && bootval != 0) || (!bootcpu && bootval < 0)) { if ((bootcpu && bootval != 0) || (!bootcpu && bootval < 0)) {
pr_warn("TSC ADJUST: CPU%u: %lld force to 0\n", cpu, bootval); pr_warn(FW_BUG "TSC ADJUST: CPU%u: %lld force to 0\n", cpu,
bootval);
wrmsrl(MSR_IA32_TSC_ADJUST, 0); wrmsrl(MSR_IA32_TSC_ADJUST, 0);
bootval = 0; bootval = 0;
} }
...@@ -141,7 +142,7 @@ bool tsc_store_and_check_tsc_adjust(bool bootcpu) ...@@ -141,7 +142,7 @@ bool tsc_store_and_check_tsc_adjust(bool bootcpu)
* package. * package.
*/ */
if (bootval != ref->bootval) { if (bootval != ref->bootval) {
pr_warn("TSC ADJUST differs: Reference CPU%u: %lld CPU%u: %lld\n", pr_warn(FW_BUG "TSC ADJUST differs: Reference CPU%u: %lld CPU%u: %lld\n",
refcpu, ref->bootval, cpu, bootval); refcpu, ref->bootval, cpu, bootval);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment