Home
last modified time | relevance | path

Searched hist:d92e9c8d313134f2ebde14a393f820b2191f4011 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/timer/
H A Dtsc_timer.cd92e9c8d313134f2ebde14a393f820b2191f4011 Wed Jul 26 03:12:00 UTC 2017 Bin Meng <bmeng.cn@gmail.com> x86: tsc: Read all ratio bits from MSR_PLATFORM_INFO

Currently we read the tsc radio like this:

ratio = (MSR_PLATFORM_INFO >> 8) & 0x1f;

Thus we get bit 8-12 of MSR_PLATFORM_INFO, however according to the
Intel manual, the ratio bits are bit 8-15.

Fix this problem by masking 0xff instead.

This keeps in sync with Linux kernel commit:
886123f: x86/tsc: Read all ratio bits from MSR_PLATFORM_INFO

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>