Skip to content

Commit 0847ff6

Browse files
committed
tools/power/x86/intel-speed-select: Fix TRL restore after SST-TF disable
JIRA: https://issues.redhat.com/browse/RHEL-76843 commit 991c8aa Author: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Date: Wed Nov 20 08:26:15 2024 -0800 tools/power/x86/intel-speed-select: Fix TRL restore after SST-TF disable 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 <srinivas.pandruvada@linux.intel.com> Signed-off-by: Steve Best <sbest@redhat.com>
1 parent e4b80b6 commit 0847ff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/power/x86/intel-speed-select/isst-core-tpmi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ static int tpmi_get_get_trls(struct isst_id *id, int config_index,
329329
return 0;
330330
}
331331

332-
static int tpmi_get_get_trl(struct isst_id *id, int level, int config_index,
332+
static int tpmi_get_get_trl(struct isst_id *id, int config_index, int level,
333333
int *trl)
334334
{
335335
struct isst_pkg_ctdp_level_info ctdp_level;

0 commit comments

Comments
 (0)