tools/power/x86/intel-speed-select: Present all TRL levels for turbo-freq

For turbo-freq feature, only 3 levels of frequencies are displayed even
if platform support more. Present all levels based on the CPU model.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
Srinivas Pandruvada 2024-03-08 18:11:03 -08:00 committed by Hans de Goede
parent 55d5639bda
commit 38fa152b3d

View File

@ -746,6 +746,7 @@ static int mbox_set_pbf_fact_status(struct isst_id *id, int pbf, int enable)
static int _get_fact_bucket_info(struct isst_id *id, int level,
struct isst_fact_bucket_info *bucket_info)
{
int trl_max_levels = isst_get_trl_max_levels();
unsigned int resp;
int i, k, ret;
@ -769,7 +770,7 @@ static int _get_fact_bucket_info(struct isst_id *id, int level,
}
}
for (k = 0; k < 3; ++k) {
for (k = 0; k < trl_max_levels; ++k) {
for (i = 0; i < 2; ++i) {
int j;