Re: [PATCH v4 4/5] sched/pelt: Add a new runnable average signal

From: Parth Shah
Date: Mon Feb 24 2020 - 05:05:43 EST




On 2/21/20 6:57 PM, Vincent Guittot wrote:
> Now that runnable_load_avg has been removed, we can replace it by a new
> signal that will highlight the runnable pressure on a cfs_rq. This signal
> track the waiting time of tasks on rq and can help to better define the
> state of rqs.

[...]

> @@ -5389,6 +5444,11 @@ static unsigned long cpu_load_without(struct rq *rq, struct task_struct *p)
> return load;
> }
>
> +static unsigned long cpu_runnable(struct rq *rq)
> +{
> + return cfs_rq_runnable_avg(&rq->cfs);
> +}

Why not move cpu-runnable definition to Patch 5? to get rid of
warning: âcpu_runnableâ defined but not used [-Wunused-function]
static unsigned long cpu_runnable(struct rq *rq)

[...]

- Parth