]> git.baikalelectronics.ru Git - kernel.git/commit
amd/powerplay: use kmemdup instead of kmalloc + memcpy
authorEdward O'Callaghan <funfunctor@folklore1984.net>
Sun, 4 Sep 2016 02:36:19 +0000 (12:36 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Sep 2016 19:10:36 +0000 (15:10 -0400)
commit6ddbcc07f10770129c5b3c7dd4754457e47c0bae
tree203d349bc125f2e837ae9c9c68d1bd1a0fa6621f
parentd97cbb82fb4ab3659b4a2ec43a01040a40c9904e
amd/powerplay: use kmemdup instead of kmalloc + memcpy

Save a few clocks by replacing calls to kmalloc followed by memcpy
with a single call to kmemdup.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amd_powerplay.c