From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Tue, 1 Aug 2017 20:21:31 +0800 Subject: [U-Boot] [PATCH 1/6] x86: tsc: Read all ratio bits from MSR_PLATFORM_INFO In-Reply-To: References: <1501038725-20850-1-git-send-email-bmeng.cn@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Aug 1, 2017 at 5:10 PM, Simon Glass wrote: > On 25 July 2017 at 21:12, Bin Meng wrote: >> 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 >> --- >> >> drivers/timer/tsc_timer.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) > > Reviewed-by: Simon Glass applied to u-boot-x86, thanks!