Re: [PATCH v5 04/15] sched/core: uclamp: add CPU's clamp groups refcounting

2018-11-22 Thread Patrick Bellasi
On 13-Nov 07:11, Patrick Bellasi wrote: > On 11-Nov 17:47, Peter Zijlstra wrote: > > On Mon, Oct 29, 2018 at 06:32:59PM +, Patrick Bellasi wrote: [...] > > > + /* Both min and max clamps are MAX aggregated */ > > > + if (max_value < rq->uclamp.group[clamp_id][group_id].value)

Re: [PATCH v5 04/15] sched/core: uclamp: add CPU's clamp groups refcounting

2018-11-13 Thread Patrick Bellasi
On 11-Nov 17:47, Peter Zijlstra wrote: > On Mon, Oct 29, 2018 at 06:32:59PM +, Patrick Bellasi wrote: > > +static inline void uclamp_cpu_update(struct rq *rq, unsigned int clamp_id) > > +{ > > + unsigned int group_id; > > + int max_value = 0; > > + > > + for (group_id = 0; group_id < UCLA

Re: [PATCH v5 04/15] sched/core: uclamp: add CPU's clamp groups refcounting

2018-11-11 Thread Peter Zijlstra
On Mon, Oct 29, 2018 at 06:32:59PM +, Patrick Bellasi wrote: > +static inline void uclamp_cpu_update(struct rq *rq, unsigned int clamp_id) > +{ > + unsigned int group_id; > + int max_value = 0; > + > + for (group_id = 0; group_id < UCLAMP_GROUPS; ++group_id) { > + if (!r

[PATCH v5 04/15] sched/core: uclamp: add CPU's clamp groups refcounting

2018-10-29 Thread Patrick Bellasi
Utilization clamping allows to clamp the utilization of a CPU within a [util_min, util_max] range which depends on the set of currently RUNNABLE tasks on that CPU. Each task references two "clamp groups" defining the minimum and maximum utilization "clamp values" to be considered for that task. Eac