Skip to content

Commit

Permalink
tools/power/x86/intel-speed-select: Fix TRL restore after SST-TF disable
Browse files Browse the repository at this point in the history
When SST-TF is disabled, the TRL (Turbo Ratio Limit) of config level 0
is getting restored. But the TRL of current level should be restored
which may not be config level 0.

This is caused by a bug in treating config level as TRL level. So
arguments needs to be swapped.

Signed-off-by: Srinivas Pandruvada <[email protected]>
  • Loading branch information
spandruvada committed Jan 3, 2025
1 parent c416a3f commit 991c8aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/power/x86/intel-speed-select/isst-core-tpmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ static int tpmi_get_get_trls(struct isst_id *id, int config_index,
return 0;
}

static int tpmi_get_get_trl(struct isst_id *id, int level, int config_index,
static int tpmi_get_get_trl(struct isst_id *id, int config_index, int level,
int *trl)
{
struct isst_pkg_ctdp_level_info ctdp_level;
Expand Down

0 comments on commit 991c8aa

Please sign in to comment.