We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d6ec07 commit 4b9caaaCopy full SHA for 4b9caaa
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
@@ -600,6 +600,8 @@ static int smu_early_init(void *handle)
600
smu->smu_baco.platform_support = false;
601
smu->user_dpm_profile.fan_mode = -1;
602
603
+ mutex_init(&smu->message_lock);
604
+
605
adev->powerplay.pp_handle = smu;
606
adev->powerplay.pp_funcs = &swsmu_pm_funcs;
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);
1003
- mutex_init(&smu->message_lock);
-
1004
INIT_WORK(&smu->throttling_logging_work, smu_throttling_logging_work_fn);
1005
INIT_WORK(&smu->interrupt_work, smu_interrupt_work_fn);
1006
atomic64_set(&smu->throttle_int_counter, 0);
0 commit comments