lkml.org 
[lkml]   [2010]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [tg_shares_up rewrite v3 09/11] sched: demand based update_cfs_load()
From
Date
On Fri, 2010-11-12 at 11:53 +0100, Peter Zijlstra wrote:
> On Thu, 2010-11-11 at 19:24 -0800, Paul Turner wrote:
> > +#ifdef CONFIG_FAIR_GROUP_SCHED
> > + cfs_rq->load_unacc_exec_time += delta_exec;
> > + if (cfs_rq->load_unacc_exec_time > sysctl_sched_shares_window)
> > {
> > + update_cfs_load(cfs_rq);
> > + update_cfs_shares(cfs_rq, 0);
>
> Why not:
> + cfs_rq->load_unacc_exec_time -= sysctl_sched_shares_window;
>
> (although you probably want to read the sysctl value into a local
> variable using ACCESS_ONCE() and use that for both cases).

Ah, I see why not, still that reset looks better here than in that other
function.


\
 
 \ /
  Last update: 2010-11-12 13:15    [W:0.106 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site