commit | f4ed4d707d9feb50a1e96a64612a49a7d60f2fc7 | [log] [tgz] |
---|---|---|
author | Bin Meng <bmeng.cn@gmail.com> | Tue Jul 25 20:12:00 2017 -0700 |
committer | Bin Meng <bmeng.cn@gmail.com> | Tue Aug 01 20:17:02 2017 +0800 |
tree | 2fbcd69bd34711643eae8e3360fd004d6524b419 | |
parent | 3d2a787a2987e2f7754e2b8a96c01aaeb330b786 [diff] |
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>