linux_dsm_epyc7002/drivers/gpu/drm/amd
Fuqian Huang d12c202289 drm/amdgpu: Use kmemdup rather than duplicating its implementation
kmemdup is introduced to duplicate a region of memory in a neat way.
Rather than kmalloc/kzalloc + memcpy, which the programmer needs to
write the size twice (sometimes lead to mistakes), kmemdup improves
readability, leads to smaller code and also reduce the chances of mistakes.
Suggestion to use kmemdup rather than using kmalloc/kzalloc + memcpy.

Reviewed-by: Christian König <Christian.Koenig@amd.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-07-05 15:54:55 -05:00
..
acp treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
amdgpu drm/amdgpu: Use kmemdup rather than duplicating its implementation 2019-07-05 15:54:55 -05:00
amdkfd drm/amdkfd: Disable idle optimization for chained runlist 2019-07-03 14:32:10 -05:00
display drm/amdgpu: Use kmemdup rather than duplicating its implementation 2019-07-05 15:54:55 -05:00
include drm/amd/powerplay: make athub pg bit configured by pg_flags 2019-06-25 13:54:32 -05:00
powerplay drm/amd/powerplay: use hardware fan control if no powerplay fan table 2019-07-01 14:54:22 -05:00