diff options
| author | Alex Deucher <[email protected]> | 2022-07-19 18:18:41 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-11-15 16:51:45 +0000 |
| commit | d09ef243035b75a6d403ebfeb7e87fa20d7e25c6 (patch) | |
| tree | 9bd53561c6484cf80b6132ca9b1fbe17ec043606 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | drm/amdgpu: move non-DC vblank handling out of irq code (diff) | |
| download | kernel-d09ef243035b75a6d403ebfeb7e87fa20d7e25c6.tar.gz kernel-d09ef243035b75a6d403ebfeb7e87fa20d7e25c6.zip | |
drm/amdgpu: clarify DC checks
There are several places where we don't want to check
if a particular asic could support DC, but rather, if
DC is enabled. Set a flag if DC is enabled and check
for that rather than if a device supports DC or not.
Acked-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c index de61a85c4b02..0f16d3c09309 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c @@ -1969,7 +1969,7 @@ int amdgpu_debugfs_init(struct amdgpu_device *adev) amdgpu_ta_if_debugfs_init(adev); #if defined(CONFIG_DRM_AMD_DC) - if (amdgpu_device_has_dc_support(adev)) + if (adev->dc_enabled) dtn_debugfs_init(adev); #endif |
