]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit2444eeca2537c3014db5abdb06895571ff98259a
tree30d47145cfaeb0ef3a6c8b8ca6d67ef8e0e6163d
parentad6d097e37e2c5d2a6d991222643af5319884893
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