tools/power x86_energy_perf_policy: Prefer driver HWP limits
authorLen Brown <len.brown@intel.com>
Fri, 19 Sep 2025 19:56:46 +0000 (15:56 -0400)
committerLen Brown <len.brown@intel.com>
Fri, 26 Sep 2025 03:12:01 +0000 (23:12 -0400)
commit2734fdbc9bb8a3aeb309ba0d62212d7f53f30bc7
tree5e537ac5e47fdfd53dda344da0b08b5a05f1723a
parentf8241f5426eb9feb46a007341edd221ceaf73073
tools/power x86_energy_perf_policy: Prefer driver HWP limits

When we are successful in using cpufreq min/max limits,
skip setting the raw MSR limits entirely.

This is necessary to avoid undoing any modification that
the cpufreq driver makes to our sysfs request.

eg. intel_pstate may take our request for a limit
that is valid according to HWP.CAP.MIN/MAX and clip
it to be within the range available in PLATFORM_INFO.

Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c