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.la...@intel.com> Acked-by: Ray Kinsella <m...@ashroe.eu> Acked-by: Anatoly Burakov <anatoly.bura...@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.h...@intel.com>