]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
x86: Allow a hardcoded TSC frequency provided by Kconfig
authorBin Meng <bmeng.cn@gmail.com>
Tue, 6 Jan 2015 14:14:14 +0000 (22:14 +0800)
committerSimon Glass <sjg@chromium.org>
Tue, 13 Jan 2015 15:25:02 +0000 (07:25 -0800)
commit3ba6a0f4f6a2381ad32930df6277930a3de577bc
tree218fdbde4e70eeab4b65543757677b3ca5864229
parent5c564b0d2fd108ebc5fd6bb0081b981ee32ddf0b
x86: Allow a hardcoded TSC frequency provided by Kconfig

By default U-Boot automatically calibrates TSC running frequency via
MSR and PIT. The calibration may not work on every x86 processor, so
a new Kconfig option CONFIG_TSC_CALIBRATION_BYPASS is introduced to
allow bypassing the calibration and assign a hardcoded TSC frequency
CONFIG_TSC_FREQ_IN_MHZ.

Normally the bypass should be turned on in a simulation environment
like qemu.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/Kconfig
arch/x86/lib/tsc_timer.c