aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
diff options
context:
space:
mode:
authorMuhammad Falak R Wani <[email protected]>2016-04-30 19:00:24 +0000
committerAlex Deucher <[email protected]>2016-05-05 00:31:06 +0000
commit84fae133f0ccc974a425eee21101f5644bd8d14d (patch)
treee406befdcf80438cd25cb01d60fd28b4a272cf12 /drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
parentdrm/amdgpu: use drm_mode_vrefresh() rather than mode->vrefresh (diff)
downloadkernel-84fae133f0ccc974a425eee21101f5644bd8d14d.tar.gz
kernel-84fae133f0ccc974a425eee21101f5644bd8d14d.zip
drm/amdgpu: Replace rcu_assign_pointer() with RCU_INIT_POINTER()
The rcu_assign_pointer() ensures that the initialization of a structure is carried out before storing a pointer to that structre. It is always safe to use RCU_INIT_POINTER() to NULL a pointer, instead of rcu_assign_pointer(). This results in slightly smaller/faster code. The following semantic patch was used: <smpl> @@ @@ - rcu_assign_pointer + RCU_INIT_POINTER (..., NULL) </smpl> Reviewed-by: Christian König <[email protected]> Signed-off-by: Muhammad Falak R Wani <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c')
0 files changed, 0 insertions, 0 deletions