aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/tsc_msr.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2014-01-16 16:00:21 -0500
committerH. Peter Anvin <hpa@linux.intel.com>2014-01-16 16:00:21 -0500
commitca1e631c3acf80bc5f5934ce9054a9b4880c96e1 (patch)
treed26644eedbcde617d9e04f9f75b11c12418366f2 /arch/x86/kernel/tsc_msr.c
parent7da7c1561366ba8adb7275464ab44e84e1faa7e0 (diff)
x86, tsc, apic: Unbreak static (MSR) calibration when CONFIG_X86_LOCAL_APIC=n
If we aren't going to use the local APIC anyway, we obviously don't care about its timer frequency. Link: http://lkml.kernel.org/r/tip-rgm7xmg7k6qnjlw3ynkcjsmh@git.kernel.org Reported-by: Fengguang Wu <fengguang.wu@intel.com> Cc: Bin Gao <bin.gao@intel.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel/tsc_msr.c')
-rw-r--r--arch/x86/kernel/tsc_msr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/tsc_msr.c b/arch/x86/kernel/tsc_msr.c
index c5027724e307..8b5434f4389f 100644
--- a/arch/x86/kernel/tsc_msr.c
+++ b/arch/x86/kernel/tsc_msr.c
@@ -118,8 +118,10 @@ int try_msr_calibrate_tsc(unsigned long *fast_calibrate)
118 *fast_calibrate = freq * ratio; 118 *fast_calibrate = freq * ratio;
119 pr_info("TSC runs at %lu KHz\n", *fast_calibrate); 119 pr_info("TSC runs at %lu KHz\n", *fast_calibrate);
120 120
121#ifdef CONFIG_X86_LOCAL_APIC
121 lapic_timer_frequency = (freq * 1000) / HZ; 122 lapic_timer_frequency = (freq * 1000) / HZ;
122 pr_info("lapic_timer_frequency = %d\n", lapic_timer_frequency); 123 pr_info("lapic_timer_frequency = %d\n", lapic_timer_frequency);
124#endif
123 125
124 return 1; 126 return 1;
125} 127}