Re: [RFC PATCH v3 2/6] sched/cpufreq: Attach perf domain to sugov policy

2019-10-17 Thread Douglas Raillard
Hi Dietmar, On 10/17/19 9:57 AM, Dietmar Eggemann wrote: On 11/10/2019 15:44, Douglas RAILLARD wrote: [...] @@ -66,6 +70,38 @@ static DEFINE_PER_CPU(struct sugov_cpu, sugov_cpu); / Governor internals ***/ +#ifdef CONFIG_ENERGY_MODEL +static

Re: [RFC PATCH v3 2/6] sched/cpufreq: Attach perf domain to sugov policy

2019-10-17 Thread Dietmar Eggemann
On 11/10/2019 15:44, Douglas RAILLARD wrote: [...] > @@ -66,6 +70,38 @@ static DEFINE_PER_CPU(struct sugov_cpu, sugov_cpu); > > / Governor internals ***/ > > +#ifdef CONFIG_ENERGY_MODEL > +static void sugov_policy_attach_pd(struct sugov_policy *sg_

[RFC PATCH v3 2/6] sched/cpufreq: Attach perf domain to sugov policy

2019-10-11 Thread Douglas RAILLARD
Attach an Energy Model perf_domain to each sugov_policy to prepare the ground for energy-aware schedutil. Signed-off-by: Douglas RAILLARD --- kernel/sched/cpufreq_schedutil.c | 39 1 file changed, 39 insertions(+) diff --git a/kernel/sched/cpufreq_schedutil.c b/