diff options
author | Edward O'Callaghan <funfunctor@folklore1984.net> | 2016-07-11 20:17:53 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-07-29 14:36:48 -0400 |
commit | 004e29ccf034ea1fb08e77b76106891bb88fae6f (patch) | |
tree | 4d1101e968575e819c94c465ff2c3f09a9f2ea55 /drivers/gpu/drm/amd/amdgpu/ci_dpm.c | |
parent | ed5121a3d8fdd8992a82a3815642fc46108300fc (diff) |
drivers/amdgpu: Use canonical form in branch predicates
Found-by: Coccinelle
Signed-off-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/ci_dpm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c index 573bc973d692..42a59fc60b2a 100644 --- a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c | |||
@@ -3034,7 +3034,7 @@ static int ci_populate_single_memory_level(struct amdgpu_device *adev, | |||
3034 | 3034 | ||
3035 | if (pi->mclk_stutter_mode_threshold && | 3035 | if (pi->mclk_stutter_mode_threshold && |
3036 | (memory_clock <= pi->mclk_stutter_mode_threshold) && | 3036 | (memory_clock <= pi->mclk_stutter_mode_threshold) && |
3037 | (pi->uvd_enabled == false) && | 3037 | (!pi->uvd_enabled) && |
3038 | (RREG32(mmDPG_PIPE_STUTTER_CONTROL) & DPG_PIPE_STUTTER_CONTROL__STUTTER_ENABLE_MASK) && | 3038 | (RREG32(mmDPG_PIPE_STUTTER_CONTROL) & DPG_PIPE_STUTTER_CONTROL__STUTTER_ENABLE_MASK) && |
3039 | (adev->pm.dpm.new_active_crtc_count <= 2)) | 3039 | (adev->pm.dpm.new_active_crtc_count <= 2)) |
3040 | memory_level->StutterEnable = true; | 3040 | memory_level->StutterEnable = true; |