File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1232,14 +1232,13 @@ static void amd_pstate_epp_update_limit(struct cpufreq_policy *policy)
1232
1232
max_limit_perf = div_u64 (policy -> max * cpudata -> highest_perf , cpudata -> max_freq );
1233
1233
min_limit_perf = div_u64 (policy -> min * cpudata -> highest_perf , cpudata -> max_freq );
1234
1234
1235
+ WRITE_ONCE (cpudata -> max_limit_perf , max_limit_perf );
1236
+ WRITE_ONCE (cpudata -> min_limit_perf , min_limit_perf );
1237
+
1235
1238
max_perf = clamp_t (unsigned long , max_perf , cpudata -> min_limit_perf ,
1236
1239
cpudata -> max_limit_perf );
1237
1240
min_perf = clamp_t (unsigned long , min_perf , cpudata -> min_limit_perf ,
1238
1241
cpudata -> max_limit_perf );
1239
-
1240
- WRITE_ONCE (cpudata -> max_limit_perf , max_limit_perf );
1241
- WRITE_ONCE (cpudata -> min_limit_perf , min_limit_perf );
1242
-
1243
1242
value = READ_ONCE (cpudata -> cppc_req_cached );
1244
1243
1245
1244
if (cpudata -> policy == CPUFREQ_POLICY_PERFORMANCE )
You can’t perform that action at this time.
0 commit comments