lkml.org 
[lkml]   [2016]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC v2 3/7] Improve the tracking of active utilisation
On Fri, Apr 01, 2016 at 05:12:29PM +0200, Luca Abeni wrote:
> + /*
> + * We cannot use inactive_task_timer() to invoke sub_running_bw()
> + * at the 0-lag time, because the task could have been migrated
> + * while SCHED_OTHER in the meanwhile.
> + */
> + if (hrtimer_active(&p->dl.inactive_timer) &&
> + !hrtimer_callback_running(&p->dl.inactive_timer))
> sub_running_bw(&p->dl, &rq->dl);

hrtimer_is_queued() ?

\
 
 \ /
  Last update: 2016-04-05 17:01    [W:0.157 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site