]> xenbits.xensource.com Git - people/jgross/xen.git/commit
x86/tsc: Fix diagnostics for TSC frequency
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 5 Aug 2020 13:56:11 +0000 (14:56 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 5 Aug 2020 16:35:11 +0000 (17:35 +0100)
commitb2bc1e714462c6cc222e3bbc38d87b039b4fa405
tree11e0f4498d8a79d2f7f4767453c1dfa15e9ecf9c
parentdae7ea5138f72f3ac38367f50d941e8f70628119
x86/tsc: Fix diagnostics for TSC frequency

A Gemini Lake platform prints:

  (XEN) CPU0: TSC: 19200000MHz * 279 / 3 = 1785600000MHz
  (XEN) CPU0: 800..1800 MHz

during boot.  The units on the first line are Hz, not MHz, so correct that and
add a space for clarity.

Also, for the min/max line, use three dots instead of two and add more spaces
so that the line can't be mistaken for being a double decimal point typo.

Boot now reads:

  (XEN) CPU0: TSC: 19200000 Hz * 279 / 3 = 1785600000 Hz
  (XEN) CPU0: 800 ... 1800 MHz

Extend these changes to the other TSC diagnostics.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/amd.c
xen/arch/x86/cpu/intel.c