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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2021 14:37:13 +0000 (15:37 +0100)
commit4d06445ad762c4a740868a0ce263abf2d4d55727
tree898224587de81d72f3ef3eac8811fcd9049b29bf
parentf667433cb379ab9ee1cbefbfee09d4c8a3459563
tools/power/x86/intel-speed-select: Set higher of cpuinfo_max_freq or base_frequency

[ Upstream commit bbaa2e95e23e74791dd75b90d5ad9aad535acc6e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/power/x86/intel-speed-select/isst-config.c