diff options
author | Christian König <christian.koenig@amd.com> | 2015-08-20 16:12:50 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-25 10:49:57 -0400 |
commit | 6c859274f363be9dc13f8849bdc59bb64f922f26 (patch) | |
tree | f4c59a2c79d6932a0b1ccc2f18eb2726e7414683 /drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c | |
parent | 87e0a87dabdbe9e1698ef85c620c4110b04992a0 (diff) | |
download | lwn-6c859274f363be9dc13f8849bdc59bb64f922f26.tar.gz lwn-6c859274f363be9dc13f8849bdc59bb64f922f26.zip |
drm/amdgpu: fix and cleanup amd_sched_entity_push_job
Calling schedule() is probably the worse things we can do.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c index 964b54381feb..1aa72edbce9a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c @@ -105,7 +105,7 @@ int amdgpu_sched_ib_submit_kernel_helper(struct amdgpu_device *adev, mutex_init(&job->job_lock); job->free_job = free_job; mutex_lock(&job->job_lock); - r = amd_sched_push_job((struct amd_sched_job *)job); + r = amd_sched_entity_push_job((struct amd_sched_job *)job); if (r) { mutex_unlock(&job->job_lock); kfree(job); |