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
> ---
>
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
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(
3 matches
Mail list logo