mshyperv.c (b4370df2b1f5158de028e167974263c5757b34a6) mshyperv.c (cc2dd4027a43bb36c846f195a764edabc0828602)
1/*
2 * HyperV Detection code.
3 *
4 * Copyright (C) 2010, Novell, Inc.
5 * Author : K. Y. Srinivasan <ksrinivasan@novell.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 144 unchanged lines hidden (view full) ---

153};
154
155static void __init ms_hyperv_init_platform(void)
156{
157 /*
158 * Extract the features and hints
159 */
160 ms_hyperv.features = cpuid_eax(HYPERV_CPUID_FEATURES);
1/*
2 * HyperV Detection code.
3 *
4 * Copyright (C) 2010, Novell, Inc.
5 * Author : K. Y. Srinivasan <ksrinivasan@novell.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 144 unchanged lines hidden (view full) ---

153};
154
155static void __init ms_hyperv_init_platform(void)
156{
157 /*
158 * Extract the features and hints
159 */
160 ms_hyperv.features = cpuid_eax(HYPERV_CPUID_FEATURES);
161 ms_hyperv.misc_features = cpuid_edx(HYPERV_CPUID_FEATURES);
161 ms_hyperv.hints = cpuid_eax(HYPERV_CPUID_ENLIGHTMENT_INFO);
162
163 printk(KERN_INFO "HyperV: features 0x%x, hints 0x%x\n",
164 ms_hyperv.features, ms_hyperv.hints);
165
166#ifdef CONFIG_X86_LOCAL_APIC
167 if (ms_hyperv.features & HV_X64_MSR_APIC_FREQUENCY_AVAILABLE) {
168 /*

--- 29 unchanged lines hidden ---
162 ms_hyperv.hints = cpuid_eax(HYPERV_CPUID_ENLIGHTMENT_INFO);
163
164 printk(KERN_INFO "HyperV: features 0x%x, hints 0x%x\n",
165 ms_hyperv.features, ms_hyperv.hints);
166
167#ifdef CONFIG_X86_LOCAL_APIC
168 if (ms_hyperv.features & HV_X64_MSR_APIC_FREQUENCY_AVAILABLE) {
169 /*

--- 29 unchanged lines hidden ---