File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
drivers/gpu/drm/amd/pm/swsmu Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -576,6 +576,8 @@ static int smu_early_init(void *handle)
576
576
smu -> smu_baco .platform_support = false;
577
577
smu -> user_dpm_profile .fan_mode = -1 ;
578
578
579
+ mutex_init (& smu -> message_lock );
580
+
579
581
adev -> powerplay .pp_handle = smu ;
580
582
adev -> powerplay .pp_funcs = & swsmu_pm_funcs ;
581
583
@@ -975,8 +977,6 @@ static int smu_sw_init(void *handle)
975
977
bitmap_zero (smu -> smu_feature .supported , SMU_FEATURE_MAX );
976
978
bitmap_zero (smu -> smu_feature .allowed , SMU_FEATURE_MAX );
977
979
978
- mutex_init (& smu -> message_lock );
979
-
980
980
INIT_WORK (& smu -> throttling_logging_work , smu_throttling_logging_work_fn );
981
981
INIT_WORK (& smu -> interrupt_work , smu_interrupt_work_fn );
982
982
atomic64_set (& smu -> throttle_int_counter , 0 );
You can’t perform that action at this time.
0 commit comments