power: check sysfs base frequency
authorDavid Hunt <david.hunt@intel.com>
Tue, 16 Mar 2021 09:38:11 +0000 (09:38 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 24 Mar 2021 21:04:48 +0000 (22:04 +0100)
commit4db9587bbf726a658807089e0af162208e9bd2ee
tree2b0e0cdeb1be32e4deeff1070ddca8229ed826f9
parentf38913b7fb8e46ff76ad9fef51b9b15770e1d9dc
power: check sysfs base frequency

Some kernels may show in incorrect value for base frequency in
sysfs (e.g. 15 GHz). This throws off the SST-BF algorithm for
high and low priority cores. So if base_frequency is greater
than max turbo frequency, ignore, and handle it as a normal
core.

Known Kernel version with issue: Linux 5.8.7

Signed-off-by: David Hunt <david.hunt@intel.com>
lib/librte_power/power_pstate_cpufreq.c