OSDN Git Service

tools/power/x86/intel-speed-select: Update max frequency
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Thu, 16 Dec 2021 01:28:02 +0000 (17:28 -0800)
committerHans de Goede <hdegoede@redhat.com>
Fri, 24 Dec 2021 11:51:34 +0000 (12:51 +0100)
commit9734213ed413da5ac791a984c8cecf1612fe4888
tree24cbbad3926d874789f3eba0263b853e119f6700
parent7c4f5cd18cb169a4ce8610b1696ec152d62b4820
tools/power/x86/intel-speed-select: Update max frequency

When BIOS disables turbo, the cpuinfo_max_freq will also be same as the
power up base frequency. When SST-PP causes increase in base frequency
the performance will be still limited to the old base frequency as the
cpuinfo_max_freq will not be updated.

In this case we need to update scaling_max frequency to the new
base_frequency. This will result in setting updated max performance
limit in the Pstate driver. So performance will not be limited to the
old base frequency.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
tools/power/x86/intel-speed-select/isst-config.c