update_cfs_rq_load_avg — update the cfs_rq's load/util averages
int update_cfs_rq_load_avg ( | u64 now, |
struct cfs_rq * cfs_rq) ; |
The cfs_rq avg is the direct sum of all its entities (blocked and runnable)
avg. The immediate corollary is that all (fair) tasks must be attached, see
post_init_entity_util_avg
.
cfs_rq->avg is used for task_h_load
and update_cfs_share
for example.
Returns true if the load decayed or we removed load.
Since both these conditions indicate a changed cfs_rq->avg.load we should
call update_tg_load_avg
when this function returns true.