x86: Add quick TSC calibration via PIT
authorBin Meng <bmeng.cn@gmail.com>
Sun, 9 Nov 2014 14:19:25 +0000 (22:19 +0800)
committerSimon Glass <sjg@chromium.org>
Fri, 21 Nov 2014 06:24:10 +0000 (07:24 +0100)
commit80de049561f4d560c50341562b7e93ff45a1d8a0
tree59476e1b5be2f28b175eba341705f3df13036cab
parent076bb44b0ef85747fec786a930335956614fb7d6
x86: Add quick TSC calibration via PIT

Use the same way that Linux does for quick TSC calibration via PIT
when calibration via MSR fails.

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