forked from luck/tmp_suning_uos_patched
drm/amd/powerplay: Fix code error for translating int type to bool type correctly
Fix code error to support value < 0 or > 1. Signed-off-by: Chengming Gui <Jack.Gui@amd.com> Reviewed-by: Hawking Zhang <hawking.zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
fb2dbfd242
commit
a751767708
|
@ -348,7 +348,7 @@ static int smu_early_init(void *handle)
|
|||
struct smu_context *smu = &adev->smu;
|
||||
|
||||
smu->adev = adev;
|
||||
smu->pm_enabled = amdgpu_dpm;
|
||||
smu->pm_enabled = !!amdgpu_dpm;
|
||||
mutex_init(&smu->mutex);
|
||||
|
||||
return smu_set_funcs(adev);
|
||||
|
|
Loading…
Reference in New Issue
Block a user