From: Thomas Gleixner Date: Sun, 18 Dec 2016 14:06:27 +0000 (+0100) Subject: x86/tsc: Annotate printouts as firmware bug X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=16588f659257495212ac6b9beaf008d9b19e8165;p=linux-beck.git x86/tsc: Annotate printouts as firmware bug Make it more obvious that the BIOS is screwed up. Signed-off-by: Thomas Gleixner Cc: Roland Scheidegger Cc: Bruce Schlobohm Cc: Kevin Stanton Cc: Peter Zijlstra Cc: Borislav Petkov --- diff --git a/arch/x86/kernel/tsc_sync.c b/arch/x86/kernel/tsc_sync.c index 9151f0ce6a42..1d8508fd15f7 100644 --- a/arch/x86/kernel/tsc_sync.c +++ b/arch/x86/kernel/tsc_sync.c @@ -76,7 +76,8 @@ static void tsc_sanitize_first_cpu(struct tsc_adjust *cur, s64 bootval, * deadline timer creates an interrupt storm. Sigh! */ 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); bootval = 0; } @@ -141,7 +142,7 @@ bool tsc_store_and_check_tsc_adjust(bool bootcpu) * package. */ 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); } /*