x86: tsc: add support for reading CPU freq from cpuid
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Mon, 14 May 2018 09:32:17 +0000 (11:32 +0200)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 13 Jun 2018 01:50:57 +0000 (09:50 +0800)
commitacc2482fd8079a062c051cfaac16054f527acab4
tree30d47145cfaeb0ef3a6c8b8ca6d67ef8e0e6163d
parent7868909ed53ed41a945f7ed95ebb88aa252142ce
x86: tsc: add support for reading CPU freq from cpuid

Starting with cpuid level 0x16 (Skylake-based processors)
it is possible to get CPU base freq via cpuid.

This fixes booting on a skylake based system.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: fixed wrong indention of labels]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
drivers/timer/tsc_timer.c