Bin Meng
d92e9c8d31
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 >
2017-08-01 20:17:02 +08:00
..
2017-06-01 07:03:13 -06:00
2017-07-28 12:02:47 -06:00
2016-10-11 11:55:33 +08:00
2017-07-11 10:08:19 -06:00
2017-07-03 17:35:28 -04:00
2017-07-28 23:34:46 +02:00
2017-07-29 11:43:51 -04:00
2017-06-01 07:03:08 -06:00
2017-05-22 12:38:15 -04:00
2017-07-12 06:56:48 +02:00
2017-02-08 06:12:14 -07:00
2017-07-28 23:34:40 +02:00
2017-07-12 10:17:44 +02:00
2017-06-01 07:03:06 -06:00
2017-07-26 10:31:44 +02:00
2017-07-28 12:02:47 -06:00
2017-07-28 12:02:47 -06:00
2017-06-16 10:14:55 -04:00
2017-06-01 07:03:08 -06:00
2017-06-01 07:03:15 -06:00
2016-04-18 17:11:43 -04:00
2017-07-27 14:59:00 +02:00
2017-07-28 12:02:47 -06:00
2017-07-31 12:21:40 -04:00
2017-07-23 09:23:29 -04:00
2016-07-27 14:15:54 -06:00
2017-07-28 12:02:47 -06:00
2017-06-12 08:37:55 -04:00
2017-07-28 23:34:44 +02:00
2017-07-31 11:22:53 -04:00
2017-07-28 12:02:47 -06:00
2017-07-28 12:02:47 -06:00
2017-06-01 19:56:54 -07:00
2017-07-26 11:29:15 -04:00
2017-02-08 06:12:14 -07:00
2017-07-28 23:34:07 +02:00
2017-06-16 10:14:55 -04:00
2017-07-11 10:08:19 -06:00
2017-07-31 12:21:40 -04:00
2016-02-06 12:00:59 +01:00
2017-06-01 07:03:10 -06:00
2017-07-28 12:02:47 -06:00
2017-06-01 07:03:01 -06:00
2017-07-11 12:13:46 +02:00
2017-05-18 11:23:31 +02:00
2017-08-01 20:17:02 +08:00
2017-06-01 07:03:01 -06:00
2017-07-29 11:43:51 -04:00
2017-07-28 12:02:47 -06:00
2017-07-30 10:30:25 +08:00
2017-07-11 10:08:19 -06:00
2017-07-26 10:31:44 +02:00