drm/amdgpu: add amd_sched_commit
authorJammy Zhou <Jammy.Zhou@amd.com>
Fri, 31 Jul 2015 09:18:15 +0000 (17:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Aug 2015 20:50:57 +0000 (16:50 -0400)
commitf95b7e3e8664fbea4e60f15e7e8a975e4b2b7c3f
tree8a1fb3c11bbd4443545a593fd0497910a6709ccb
parentea199cc9f825f3ef5aab3db5f00dcc639f8a8b02
drm/amdgpu: add amd_sched_commit

This function is to update last_emitted_v_seq and wake up the waiters.

It should be called by driver in the run_job backend function

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