OSDN Git Service

amdgpu: vamgr_32 can be a struct instead of a pointer
authorAlex Xie <AlexBin.Xie@amd.com>
Sat, 28 Jan 2017 19:50:36 +0000 (21:50 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 Feb 2017 20:22:45 +0000 (15:22 -0500)
commit067e9a1d47a8373b3145481a70fec84ce8e76441
treec24672d4f6f1cdada5b54be01e249a004f962ea3
parent7a03cdf6a703911d2a8e8ab0781f1e6b88412329
amdgpu: vamgr_32 can be a struct instead of a pointer

vamgr_32 is an integral part of amdgpu_device. We don't need to calloc and free it.
This can save CPU time, reduce heap fragmentation.

Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Alex Xie <AlexBin.Xie@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
[Grazvydas Ignotas: rebase, correct a typo in commit message]
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
amdgpu/amdgpu_device.c
amdgpu/amdgpu_internal.h
amdgpu/amdgpu_vamgr.c