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)
commitefdf7a93195a712baff7aa077ae5e4542a9af2f9
tree203d349bc125f2e837ae9c9c68d1bd1a0fa6621f
parent41698abb4d418b83b4d9fdae1172e00b91e46b54
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