Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/radeon: add header comment for clarification to vce_v2_0_enable_mgcg()

Add function header comment to make it clear that local variable sw_cg
is used for debugging and it should not be removed.

Addresses-Coverity-ID: 1198635
Cc: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Gustavo A. R. Silva and committed by
Alex Deucher
0ed27987 ccfee95c

+4
+4
drivers/gpu/drm/radeon/vce_v2_0.c
··· 104 104 WREG32(VCE_CGTT_CLK_OVERRIDE, 7); 105 105 } 106 106 107 + /* 108 + * Local variable sw_cg is used for debugging purposes, in case we 109 + * ran into problems with dynamic clock gating. Don't remove it. 110 + */ 107 111 void vce_v2_0_enable_mgcg(struct radeon_device *rdev, bool enable) 108 112 { 109 113 bool sw_cg = false;