x86: tsc: Add support for native calibration of TSC freq
authorBernhard Messerklinger <bernhard.messerklinger@br-automation.com>
Mon, 7 Jan 2019 11:14:40 +0000 (12:14 +0100)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 12 Feb 2019 06:37:16 +0000 (14:37 +0800)
commitca7db866fead1d01ecf018343a99e3cd0d095d51
treee299ce7fc070030228b0ea21317def7da7d07224
parent2436396a11a0b74742f3df330b4056b6a112bf01
x86: tsc: Add support for native calibration of TSC freq

Add native tsc calibration function. Calibrate the tsc timer the same
way as linux does in arch/x86/kernel/tsc.c.

Fixes booting for Apollo Lake processors.

Signed-off-by: Bernhard Messerklinger <bernhard.messerklinger@br-automation.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/timer/tsc_timer.c