lkml.org 
[lkml]   [2013]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH -tip 1/4] sched: Avoid cputime scaling overflow

* Stanislaw Gruszka <sgruszka@redhat.com> wrote:

> Here is patch, which add Linus cputime scaling algorithm to the kernel.
>
> This is follow up of commit d9a3c9823a2e6a543eb7807fb3d15d8233817ec5
> "sched: Lower chances of cputime scaling overflow" which try to avoid
> multiplication overflow, but not guarantee that the overflow will not
> happen.
>
> Linus crated different algorithm, which avoid completely multiplication
> overflow by dropping precision when numbers are big. It was tested
> by me and it gives good relative error of scaled numbers.
>
> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>

For multi-authored code it's generally nice to add a tag like this:

Originally-From: Linus Torvalds <torvalds@linux-foundation.org>

It would also be nice to quote the testing results/output and the
precision estimations in the changelog - so that others can see the code's
current capabilities and limitations.

Thanks,

Ingo


\
 
 \ /
  Last update: 2013-04-30 13:41    [W:0.082 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site