tools/power/x86/intel-speed-select: Set higher of cpuinfo_max_freq or base_frequency
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Mon, 21 Dec 2020 07:18:59 +0000 (23:18 -0800)
committerHans de Goede <hdegoede@redhat.com>
Mon, 4 Jan 2021 14:54:27 +0000 (15:54 +0100)
commitbbaa2e95e23e74791dd75b90d5ad9aad535acc6e
tree1e6c84b7e307a71f59fe2bfe7d3b8be33d1e8455
parentf981dc171c04c6cf5a35c712543b231ebf805832
tools/power/x86/intel-speed-select: Set higher of cpuinfo_max_freq or base_frequency

In some case when BIOS disabled turbo, cpufreq cpuinfo_max_freq can be
lower than base_frequency at higher config level. So, in that case set
scaling_min_freq to base_frequency.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lore.kernel.org/r/20201221071859.2783957-3-srinivas.pandruvada@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
tools/power/x86/intel-speed-select/isst-config.c