drm/amdgpu: add entity only when first job come
authorChunming Zhou <David1.Zhou@amd.com>
Fri, 11 Dec 2015 10:22:52 +0000 (18:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Dec 2015 00:41:19 +0000 (19:41 -0500)
commite8deea2d4bb441751a4c1730495fa9810a208de5
tree4486b5a3d6befcfe737fe9e4471af7bc7e22d532
parent2c1a27840394428d8f44fe5d7509dd20574d0573
drm/amdgpu: add entity only when first job come

umd somtimes will create a context for every ring,
that means some entities wouldn't be used at all.

Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/scheduler/gpu_scheduler.c