summaryrefslogtreecommitdiffstats
path: root/arch/x86/xen
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2020-08-04 02:41:06 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2020-08-04 02:41:06 +0200
commita92ad11fb209c8de0d358b78415fda5f01308202 (patch)
tree943c23aa66079b42abe4399ba442aefbb4dcadab /arch/x86/xen
parentMerge tag 'x86-platform-2020-08-03' of git://git.kernel.org/pub/scm/linux/ker... (diff)
parentx86/xen/time: Set the X86_FEATURE_TSC_KNOWN_FREQ flag in xen_tsc_khz() (diff)
downloadlinux-a92ad11fb209c8de0d358b78415fda5f01308202.tar.xz
linux-a92ad11fb209c8de0d358b78415fda5f01308202.zip
Merge tag 'x86-timers-2020-08-03' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 timer update from Ingo Molnar: "Set the X86_FEATURE_TSC_KNOWN_FREQ flag for Xen guests, to avoid recalibration" * tag 'x86-timers-2020-08-03' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/xen/time: Set the X86_FEATURE_TSC_KNOWN_FREQ flag in xen_tsc_khz()
Diffstat (limited to 'arch/x86/xen')
-rw-r--r--arch/x86/xen/time.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c
index c8897aad13cd..91f5b330dcc6 100644
--- a/arch/x86/xen/time.c
+++ b/arch/x86/xen/time.c
@@ -39,6 +39,7 @@ static unsigned long xen_tsc_khz(void)
struct pvclock_vcpu_time_info *info =
&HYPERVISOR_shared_info->vcpu_info[0].time;
+ setup_force_cpu_cap(X86_FEATURE_TSC_KNOWN_FREQ);
return pvclock_tsc_khz(info);
}