Re: [PATCH stable] x86/tsc: Prevent result truncation on 32 bit

2018-09-12 Thread Greg KH
On Wed, Sep 12, 2018 at 02:42:08PM +0200, Thomas Gleixner wrote: > Subject: x86/tsc: Prevent result truncation on 32 bit > From: Chuanhua Lei > Date: Thu Sep 6 18:03:23 2018 +0800 > > From: Chuanhua Lei > > Commit 17f6bac2249356c795339e03a0742cd79be3cab8 upstream. > > Loops per jiffy is

Re: [PATCH stable] x86/tsc: Prevent result truncation on 32 bit

2018-09-12 Thread Greg KH
On Wed, Sep 12, 2018 at 02:42:08PM +0200, Thomas Gleixner wrote: > Subject: x86/tsc: Prevent result truncation on 32 bit > From: Chuanhua Lei > Date: Thu Sep 6 18:03:23 2018 +0800 > > From: Chuanhua Lei > > Commit 17f6bac2249356c795339e03a0742cd79be3cab8 upstream. > > Loops per jiffy is

[PATCH stable] x86/tsc: Prevent result truncation on 32 bit

2018-09-12 Thread Thomas Gleixner
Subject: x86/tsc: Prevent result truncation on 32 bit From: Chuanhua Lei Date: Thu Sep 6 18:03:23 2018 +0800 From: Chuanhua Lei Commit 17f6bac2249356c795339e03a0742cd79be3cab8 upstream. Loops per jiffy is calculated by multiplying tsc_khz with 1e3 and then dividing it by HZ. Both tsc_khz

[PATCH stable] x86/tsc: Prevent result truncation on 32 bit

2018-09-12 Thread Thomas Gleixner
Subject: x86/tsc: Prevent result truncation on 32 bit From: Chuanhua Lei Date: Thu Sep 6 18:03:23 2018 +0800 From: Chuanhua Lei Commit 17f6bac2249356c795339e03a0742cd79be3cab8 upstream. Loops per jiffy is calculated by multiplying tsc_khz with 1e3 and then dividing it by HZ. Both tsc_khz