Re: [PATCH 2/2] sched/nohz: fix overflow error in scheduler_tick_max_deferment()

2014-01-06 Thread Kevin Hilman
Frederic Weisbecker writes: > On Tue, Dec 17, 2013 at 01:23:08PM -0800, Kevin Hilman wrote: >> The conversion of the max deferment from usecs to nsecs can easily >> overflow on platforms where a long is 32-bits. To fix, cast the usecs >> value to u64 before multiplying by NSECS_PER_USEC. >> >>

Re: [PATCH 2/2] sched/nohz: fix overflow error in scheduler_tick_max_deferment()

2014-01-05 Thread Frederic Weisbecker
On Tue, Dec 17, 2013 at 01:23:08PM -0800, Kevin Hilman wrote: > The conversion of the max deferment from usecs to nsecs can easily > overflow on platforms where a long is 32-bits. To fix, cast the usecs > value to u64 before multiplying by NSECS_PER_USEC. > > This was discovered on 32-bit ARM pla

[PATCH 2/2] sched/nohz: fix overflow error in scheduler_tick_max_deferment()

2013-12-17 Thread Kevin Hilman
The conversion of the max deferment from usecs to nsecs can easily overflow on platforms where a long is 32-bits. To fix, cast the usecs value to u64 before multiplying by NSECS_PER_USEC. This was discovered on 32-bit ARM platform when extending the max deferment value. Cc: Frederic Weisbecker

[PATCH 2/2] sched/nohz: fix overflow error in scheduler_tick_max_deferment()

2013-09-16 Thread Kevin Hilman
The conversion of the max deferment from usecs to nsecs can easily overflow on platforms where a long is 32-bits. To fix, cast the usecs value to u64 before multiplying by NSECS_PER_USEC. This was discovered on 32-bit ARM platform when extending the max deferment value. Cc: Frederic Weisbecker

Re: [PATCH 2/2] sched/nohz: fix overflow error in scheduler_tick_max_deferment()

2013-06-19 Thread Frederic Weisbecker
On Tue, Jun 18, 2013 at 04:58:29PM -0700, Kevin Hilman wrote: > The conversion of the max deferment from usecs to nsecs can easily > overflow on platforms where a long is 32-bits. To fix, cast the usecs > value to u64 before multiplying by NSECS_PER_USEC. > > This was discovered on 32-bit ARM pla

[PATCH 2/2] sched/nohz: fix overflow error in scheduler_tick_max_deferment()

2013-06-18 Thread Kevin Hilman
The conversion of the max deferment from usecs to nsecs can easily overflow on platforms where a long is 32-bits. To fix, cast the usecs value to u64 before multiplying by NSECS_PER_USEC. This was discovered on 32-bit ARM platform when extending the max deferment value. Cc: Frederic Weisbecker