mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
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>
This commit is contained in:
parent
c416a3fed7
commit
991c8aacfb
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user