x86/xen/time: Set the X86_FEATURE_TSC_KNOWN_FREQ flag in xen_tsc_khz()
authorHayato Ohhashi <o8@vmm.dev>
Tue, 21 Jul 2020 16:12:31 +0000 (16:12 +0000)
committerIngo Molnar <mingo@kernel.org>
Sat, 25 Jul 2020 13:49:41 +0000 (15:49 +0200)
commit38bc8b3b0991b7e0da8513fd65fbdd638edf8f62
treeffbc8924e513eb3f801698cea48b127c8f64839f
parent49b58108de0089280f9123d8c4ef1e44deb596b9
x86/xen/time: Set the X86_FEATURE_TSC_KNOWN_FREQ flag in xen_tsc_khz()

If the TSC frequency is known from the pvclock page,
the TSC frequency does not need to be recalibrated.

We can avoid recalibration by setting X86_FEATURE_TSC_KNOWN_FREQ.

Signed-off-by: Hayato Ohhashi <o8@vmm.dev>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: https://lore.kernel.org/r/20200721161231.6019-1-o8@vmm.dev
arch/x86/xen/time.c