summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorRenat Valiullin <rvaliullin@vmware.com>2016-10-13 21:45:39 +0300
committerThomas Gleixner <tglx@linutronix.de>2016-10-19 18:36:33 +0300
commit854dd54245f7f1b1175b1bada613929396a571be (patch)
tree2c5ee263258963a95a2e26b13183d3bb043edd3f /arch/x86
parent1a1891d762d6e64daf07b5be4817e3fbb29e3c59 (diff)
downloadlinux-854dd54245f7f1b1175b1bada613929396a571be.tar.xz
x86/vmware: Skip timer_irq_works() check on VMware
The timer_irq_works() boot check may sometimes fail in a VM, when the Host is overcommitted or when the Guest is running nested. Since the intended check is unnecessary on VMware's virtual hardware, by-pass it. Signed-off-by: Renat Valiullin <rvaliullin@vmware.com> Acked-by: Alok N Kataria <akataria@vmware.com> Cc: virtualization@lists.linux-foundation.org Link: http://lkml.kernel.org/r/20161013184539.GA11497@rvaliullin-vm Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kernel/cpu/vmware.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/vmware.c b/arch/x86/kernel/cpu/vmware.c
index 81160578b91a..5130985b758b 100644
--- a/arch/x86/kernel/cpu/vmware.c
+++ b/arch/x86/kernel/cpu/vmware.c
@@ -27,6 +27,7 @@
#include <asm/div64.h>
#include <asm/x86_init.h>
#include <asm/hypervisor.h>
+#include <asm/timer.h>
#include <asm/apic.h>
#define CPUID_VMWARE_INFO_LEAF 0x40000000
@@ -94,6 +95,10 @@ static void __init vmware_platform_setup(void)
} else {
pr_warn("Failed to get TSC freq from the hypervisor\n");
}
+
+#ifdef CONFIG_X86_IO_APIC
+ no_timer_check = 1;
+#endif
}
/*