Re: [PATCH] sched/fair: fix incorrect calculation of capacity in scale_rt_capacity

2015-09-30 Thread Peter Zijlstra
On Wed, Sep 23, 2015 at 02:15:51PM +0800, Chao Yu wrote: > div_u64 can only handle 32-bits divisor, if our divisor is with type of > 64-bits, we should use div64_u64 instead, otherwise value of divisor will > be cast to 32-bits, resulting in wrong calculation. > > Signed-off-by: Chao Yu > --- >

RE: [PATCH] sched/fair: fix incorrect calculation of capacity in scale_rt_capacity

2015-09-28 Thread Chao Yu
Ping. > -Original Message- > From: Chao Yu [mailto:chao2...@samsung.com] > Sent: Wednesday, September 23, 2015 2:16 PM > To: 'mi...@redhat.com'; 'pet...@infradead.org' > Cc: 'linux-kernel@vger.kernel.org' > Subject: [PATCH] sche

[PATCH] sched/fair: fix incorrect calculation of capacity in scale_rt_capacity

2015-09-22 Thread Chao Yu
div_u64 can only handle 32-bits divisor, if our divisor is with type of 64-bits, we should use div64_u64 instead, otherwise value of divisor will be cast to 32-bits, resulting in wrong calculation. Signed-off-by: Chao Yu --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(