aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/mshyperv.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/cpu/mshyperv.c')
-rw-r--r--arch/x86/kernel/cpu/mshyperv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/mshyperv.c b/arch/x86/kernel/cpu/mshyperv.c
index 9f6e9f89d9d6..9f7ca266864a 100644
--- a/arch/x86/kernel/cpu/mshyperv.c
+++ b/arch/x86/kernel/cpu/mshyperv.c
@@ -70,8 +70,6 @@ static struct clocksource hyperv_cs = {
70 70
71static void __init ms_hyperv_init_platform(void) 71static void __init ms_hyperv_init_platform(void)
72{ 72{
73 u64 hv_lapic_frequency;
74
75 /* 73 /*
76 * Extract the features and hints 74 * Extract the features and hints
77 */ 75 */
@@ -86,6 +84,8 @@ static void __init ms_hyperv_init_platform(void)
86 /* 84 /*
87 * Get the APIC frequency. 85 * Get the APIC frequency.
88 */ 86 */
87 u64 hv_lapic_frequency;
88
89 rdmsrl(HV_X64_MSR_APIC_FREQUENCY, hv_lapic_frequency); 89 rdmsrl(HV_X64_MSR_APIC_FREQUENCY, hv_lapic_frequency);
90 hv_lapic_frequency = div_u64(hv_lapic_frequency, HZ); 90 hv_lapic_frequency = div_u64(hv_lapic_frequency, HZ);
91 lapic_timer_frequency = hv_lapic_frequency; 91 lapic_timer_frequency = hv_lapic_frequency;