mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
drm/amdgpu: some code refinement v2
Fix the code alignment, etc. v2: rebase the code 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>
This commit is contained in:
parent
03d3a3e634
commit
dd01d07195
2 changed files with 18 additions and 17 deletions
|
@ -33,12 +33,13 @@ static int amdgpu_sched_prepare_job(struct amd_gpu_scheduler *sched,
|
||||||
{
|
{
|
||||||
int r = 0;
|
int r = 0;
|
||||||
struct amdgpu_cs_parser *sched_job = (struct amdgpu_cs_parser *)job;
|
struct amdgpu_cs_parser *sched_job = (struct amdgpu_cs_parser *)job;
|
||||||
if (sched_job->prepare_job)
|
if (sched_job->prepare_job) {
|
||||||
r = sched_job->prepare_job(sched_job);
|
r = sched_job->prepare_job(sched_job);
|
||||||
if (r) {
|
if (r) {
|
||||||
DRM_ERROR("Prepare job error\n");
|
DRM_ERROR("Prepare job error\n");
|
||||||
schedule_work(&sched_job->job_work);
|
schedule_work(&sched_job->job_work);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue