File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
drivers/gpu/drm/amd/pm/swsmu Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2226,7 +2226,7 @@ static int smu_bump_power_profile_mode(struct smu_context *smu,
2226
2226
static int smu_adjust_power_state_dynamic (struct smu_context * smu ,
2227
2227
enum amd_dpm_forced_level level ,
2228
2228
bool skip_display_settings ,
2229
- bool force_update )
2229
+ bool init )
2230
2230
{
2231
2231
int ret = 0 ;
2232
2232
int index = 0 ;
@@ -2255,7 +2255,7 @@ static int smu_adjust_power_state_dynamic(struct smu_context *smu,
2255
2255
}
2256
2256
}
2257
2257
2258
- if (force_update || smu_dpm_ctx -> dpm_level != level ) {
2258
+ if (smu_dpm_ctx -> dpm_level != level ) {
2259
2259
ret = smu_asic_set_performance_level (smu , level );
2260
2260
if (ret ) {
2261
2261
dev_err (smu -> adev -> dev , "Failed to set performance level!" );
@@ -2272,7 +2272,7 @@ static int smu_adjust_power_state_dynamic(struct smu_context *smu,
2272
2272
index = index > 0 && index <= WORKLOAD_POLICY_MAX ? index - 1 : 0 ;
2273
2273
workload [0 ] = smu -> workload_setting [index ];
2274
2274
2275
- if (force_update || smu -> power_profile_mode != workload [0 ])
2275
+ if (init || smu -> power_profile_mode != workload [0 ])
2276
2276
smu_bump_power_profile_mode (smu , workload , 0 );
2277
2277
}
2278
2278
You can’t perform that action at this time.
0 commit comments