File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -296,9 +296,6 @@ static int shmem_set_epp(struct amd_cpudata *cpudata, u32 epp)
296
296
int ret ;
297
297
struct cppc_perf_ctrls perf_ctrls ;
298
298
299
- amd_pstate_update_perf (cpudata , cpudata -> min_limit_perf , 0U ,
300
- cpudata -> max_limit_perf , false);
301
-
302
299
perf_ctrls .energy_perf = epp ;
303
300
ret = cppc_set_epp_perf (cpudata -> cpu , & perf_ctrls , 1 );
304
301
if (ret ) {
@@ -1600,6 +1597,10 @@ static int amd_pstate_epp_update_limit(struct cpufreq_policy *policy)
1600
1597
epp = 0 ;
1601
1598
1602
1599
WRITE_ONCE (cpudata -> cppc_req_cached , value );
1600
+
1601
+ amd_pstate_update_perf (cpudata , cpudata -> min_limit_perf , 0U ,
1602
+ cpudata -> max_limit_perf , false);
1603
+
1603
1604
return amd_pstate_set_epp (cpudata , epp );
1604
1605
}
1605
1606
You can’t perform that action at this time.
0 commit comments