[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1389124986-32501-1-git-send-email-kusmabite@gmail.com>
Date: Tue, 7 Jan 2014 21:03:06 +0100
From: Erik Faye-Lund <kusmabite@...il.com>
To: linux-tegra@...r.kernel.org
Cc: thierry.reding@...il.com, tbergstrom@...dia.com,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
Erik Faye-Lund <kusmabite@...il.com>
Subject: [PATCH] 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 <kusmabite@...il.com>
---
Here's a trivial optimization I have been running with for a while.
drivers/gpu/host1x/job.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/host1x/job.c b/drivers/gpu/host1x/job.c
index de5ec33..e965805 100644
--- a/drivers/gpu/host1x/job.c
+++ b/drivers/gpu/host1x/job.c
@@ -534,7 +534,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;
--
1.8.1.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists