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 @@ -600,6 +600,8 @@ static int smu_early_init(void *handle)
600
600
smu -> smu_baco .platform_support = false;
601
601
smu -> user_dpm_profile .fan_mode = -1 ;
602
602
603
+ mutex_init (& smu -> message_lock );
604
+
603
605
adev -> powerplay .pp_handle = smu ;
604
606
adev -> powerplay .pp_funcs = & swsmu_pm_funcs ;
605
607
@@ -999,8 +1001,6 @@ static int smu_sw_init(void *handle)
999
1001
bitmap_zero (smu -> smu_feature .supported , SMU_FEATURE_MAX );
1000
1002
bitmap_zero (smu -> smu_feature .allowed , SMU_FEATURE_MAX );
1001
1003
1002
- mutex_init (& smu -> message_lock );
1003
-
1004
1004
INIT_WORK (& smu -> throttling_logging_work , smu_throttling_logging_work_fn );
1005
1005
INIT_WORK (& smu -> interrupt_work , smu_interrupt_work_fn );
1006
1006
atomic64_set (& smu -> throttle_int_counter , 0 );
You can’t perform that action at this time.
0 commit comments