Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1509111

Re: [PATCH 3/6 v5] sched: factorize PELT update

From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: [PATCH 3/6 v5] sched: factorize PELT update
Date 2016-10-26 13:50 +0200
Message-ID <swuSt-32v-11@gated-at.bofh.it> (permalink)
References <stcfo-1yQ-11@gated-at.bofh.it> <stcfo-1yQ-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Oct 17, 2016 at 11:14:10AM +0200, Vincent Guittot wrote:
> @@ -3110,11 +3116,12 @@ static inline void update_load_avg(struct sched_entity *se, int update_tg)
>  	 * Track task load average for carrying it to new CPU after migrated, and
>  	 * track group sched_entity load average for task_h_load calc in migration
>  	 */
> -	__update_load_avg(now, cpu, &se->avg,
> +	if (se->avg.last_update_time && !(flags & SKIP_AGE_LOAD))
> +		__update_load_avg(now, cpu, &se->avg,
>  			  se->on_rq * scale_load_down(se->load.weight),
>  			  cfs_rq->curr == se, NULL);
>  

{ } for any multi line stmt pls.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 3/6 v5] sched: factorize PELT update Vincent Guittot <vincent.guittot@linaro.org> - 2016-10-17 11:20 +0200
  Re: [PATCH 3/6 v5] sched: factorize PELT update Peter Zijlstra <peterz@infradead.org> - 2016-10-26 13:50 +0200
    Re: [PATCH 3/6 v5] sched: factorize PELT update Vincent Guittot <vincent.guittot@linaro.org> - 2016-10-26 15:00 +0200

csiph-web