From: Erik Faye-Lund Date: Tue, 7 Jan 2014 20:03:06 +0000 (+0100) Subject: gpu: host1x: do not check previously handled gathers X-Git-Tag: v3.14-rc5~1^2~4^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=89e6e8c85f21555a763d0e47841b515ede6278d1;p=karo-tx-linux.git gpu: host1x: do not check previously handled gathers When patching gathers, we don't need to check against gathers with lower indices than the current one, as they are guaranteed to already have been handled. Signed-off-by: Erik Faye-Lund Acked-By: Terje Bergstrom Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/host1x/job.c b/drivers/gpu/host1x/job.c index 1146e3bba6e1..112f27e51bc7 100644 --- a/drivers/gpu/host1x/job.c +++ b/drivers/gpu/host1x/job.c @@ -538,7 +538,7 @@ int host1x_job_pin(struct host1x_job *job, struct device *dev) g->base = job->gather_addr_phys[i]; - for (j = 0; j < job->num_gathers; j++) + for (j = i + 1; j < job->num_gathers; j++) if (job->gathers[j].bo == g->bo) job->gathers[j].handled = true;