[PATCH v4 3/4] lib/power: add get and set API for scaling freq min and max with pstate mode

David Hunt david.hunt at intel.com
Tue May 24 16:39:17 CEST 2022


On 24/05/2022 14:14, Kevin Laatz wrote:
> Add new get/set API to allow the user or application to set the minimum
> and maximum frequencies to use when scaling.
> Previously, the frequency range was determined by the HW capabilities of
> the CPU. With this new API, the user or application can constrain this
> if required.
>
> Signed-off-by: Kevin Laatz <kevin.laatz at intel.com>
> Acked-by: Ray Kinsella <mdr at ashroe.eu>
> Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>
>
> ---
> v4:
>   * fix mismatch between comments and code
>   * fix return value when max freq is not set
>
> v3:
>   * updated doxygen comments
>   * added checks to ensure min/max value is valid
>   * consider 0 as 'not set' for scaling_freq_max
> ---
>   lib/power/power_pstate_cpufreq.c | 24 ++++++++--
>   lib/power/rte_power_pmd_mgmt.c   | 77 ++++++++++++++++++++++++++++++
>   lib/power/rte_power_pmd_mgmt.h   | 81 ++++++++++++++++++++++++++++++++
>   lib/power/version.map            |  4 ++
>   4 files changed, 181 insertions(+), 5 deletions(-)
>

Tested-by: David Hunt <david.hunt at intel.com>




More information about the dev mailing list