diff options
Diffstat (limited to 'arch/x86/kernel/cpu/hypervisor.c')
-rw-r--r-- | arch/x86/kernel/cpu/hypervisor.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/hypervisor.c b/arch/x86/kernel/cpu/hypervisor.c index 7bd55064ffe..35ae2b75226 100644 --- a/arch/x86/kernel/cpu/hypervisor.c +++ b/arch/x86/kernel/cpu/hypervisor.c | |||
@@ -41,8 +41,17 @@ unsigned long get_hypervisor_tsc_freq(void) | |||
41 | return 0; | 41 | return 0; |
42 | } | 42 | } |
43 | 43 | ||
44 | static inline void __cpuinit | ||
45 | hypervisor_set_feature_bits(struct cpuinfo_x86 *c) | ||
46 | { | ||
47 | if (boot_cpu_data.x86_hyper_vendor == X86_HYPER_VENDOR_VMWARE) { | ||
48 | vmware_set_feature_bits(c); | ||
49 | return; | ||
50 | } | ||
51 | } | ||
52 | |||
44 | void __cpuinit init_hypervisor(struct cpuinfo_x86 *c) | 53 | void __cpuinit init_hypervisor(struct cpuinfo_x86 *c) |
45 | { | 54 | { |
46 | detect_hypervisor_vendor(c); | 55 | detect_hypervisor_vendor(c); |
56 | hypervisor_set_feature_bits(c); | ||
47 | } | 57 | } |
48 | |||