Re: [RFC PATCH v3 1/6] PM: Introduce em_pd_get_higher_freq()

2019-10-17 Thread Douglas Raillard
Hi Dietmar, On 10/17/19 10:58 AM, Dietmar Eggemann wrote: On 11/10/2019 15:44, Douglas RAILLARD wrote: [...] diff --git a/include/linux/energy_model.h b/include/linux/energy_model.h index d249b88a4d5a..dd6a35f099ea 100644 --- a/include/linux/energy_model.h +++ b/include/linux/energy_model.h @

Re: [RFC PATCH v3 1/6] PM: Introduce em_pd_get_higher_freq()

2019-10-17 Thread Dietmar Eggemann
On 11/10/2019 15:44, Douglas RAILLARD wrote: [...] > diff --git a/include/linux/energy_model.h b/include/linux/energy_model.h > index d249b88a4d5a..dd6a35f099ea 100644 > --- a/include/linux/energy_model.h > +++ b/include/linux/energy_model.h > @@ -159,6 +159,53 @@ static inline int em_pd_nr_cap_s

Re: [RFC PATCH v3 1/6] PM: Introduce em_pd_get_higher_freq()

2019-10-17 Thread Dietmar Eggemann
On 11/10/2019 15:44, Douglas RAILLARD wrote: [...] > diff --git a/include/linux/energy_model.h b/include/linux/energy_model.h > index d249b88a4d5a..dd6a35f099ea 100644 > --- a/include/linux/energy_model.h > +++ b/include/linux/energy_model.h > @@ -159,6 +159,53 @@ static inline int em_pd_nr_cap_s

[RFC PATCH v3 1/6] PM: Introduce em_pd_get_higher_freq()

2019-10-11 Thread Douglas RAILLARD
em_pd_get_higher_freq() returns a frequency greater or equal to the provided one while taking into account a given cost margin. It also skips inefficient OPPs that have a higher cost than another one with a higher frequency. The efficiency of an OPP is measured as efficiency=capacity/power. OPPs w