[lkml]   [2013]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch v5 06/15] sched: log the cpu utilization at rq
On Wed, 2013-02-20 at 22:33 +0800, Alex Shi wrote:
> > There's generally a better value than 100 when using computers..
> seeing
> > how 100 is 64+32+4.
> I didn't find a good example for this. and no idea of your suggestion,
> would you like to explain a bit more?

Basically what you're doing ends up being fixed point math, using 100 as
unit is inefficient, pick a power-of-2 and everything reduces to

So use 128 or 1024 or whatever and you don't need mult and div
instructions to represent [0,1]

 \ /
  Last update: 2013-02-20 17:01    [W:0.139 / U:0.580 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site