Re: [PATCH 05/17] x86: tsc_timer: Correct overflow in __udelay()

2021-01-31 Thread Bin Meng
On Mon, Feb 1, 2021 at 2:10 PM Bin Meng wrote: > > On Thu, Jan 14, 2021 at 11:30 AM Simon Glass wrote: > > > > At present long delays such as msleep(2000) can cause an overflow in this > > function. There is no need for this, since it already uses a 64-bit int. > > > > Add a cast to correct this.

Re: [PATCH 05/17] x86: tsc_timer: Correct overflow in __udelay()

2021-01-31 Thread Bin Meng
On Thu, Jan 14, 2021 at 11:30 AM Simon Glass wrote: > > At present long delays such as msleep(2000) can cause an overflow in this > function. There is no need for this, since it already uses a 64-bit int. > > Add a cast to correct this. > > Signed-off-by: Simon Glass > --- > > drivers/timer/tsc_

[PATCH 05/17] x86: tsc_timer: Correct overflow in __udelay()

2021-01-13 Thread Simon Glass
At present long delays such as msleep(2000) can cause an overflow in this function. There is no need for this, since it already uses a 64-bit int. Add a cast to correct this. Signed-off-by: Simon Glass --- drivers/timer/tsc_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --