]> git.baikalelectronics.ru Git - kernel.git/commit
x86/tsc: Print tsc_khz, when it differs from cpu_khz
authorLen Brown <len.brown@intel.com>
Fri, 22 Dec 2017 05:27:56 +0000 (00:27 -0500)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 14 Jan 2018 11:14:50 +0000 (12:14 +0100)
commit53a115f79645f073dae77071b58c8cf864d1db02
treebe8defe035a8f4ebc2c4c34910a348b9183ef220
parent9d9917f2bec1f13cc02201d9c4647cd64ca70dce
x86/tsc: Print tsc_khz, when it differs from cpu_khz

If CPU and TSC frequency are the same the printout of the CPU frequency is
valid for the TSC as well:

      tsc: Detected 2900.000 MHz processor

If the TSC frequency is different there is no information in dmesg. Add a
conditional printout:

  tsc: Detected 2904.000 MHz TSC

Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: peterz@infradead.org
Link: https://lkml.kernel.org/r/537b342debcd8e8aebc8d631015dcdf9f9ba8a26.1513920414.git.len.brown@intel.com
arch/x86/kernel/tsc.c