From 5f3648137191513e3f98234b47251c16edd18ce7 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Tue, 31 May 2016 16:42:22 -0700 Subject: gpu: nvgpu: Remove dead priv_cmdbuf code Remove the gp_get and gp_put pointers from the priv_cmdbuf code. These pointers appear to track the position of th the priv_cmdbuf in the gp_fifo. However, these pointers are not used for anything nor are they needed for anything in the future. This code appears to be a relic left over from the past. Change-Id: Ibed1a6d51fa0cac12c5e0429760e8e2f611fc899 Signed-off-by: Alex Waterman Reviewed-on: http://git-master/r/1161859 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index 02ec5835..0a6a40a8 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c @@ -1361,9 +1361,6 @@ int gk20a_channel_alloc_priv_cmdbuf(struct channel_gk20a *c, u32 orig_size, } e->size = orig_size; - e->gp_get = c->gpfifo.get; - e->gp_put = c->gpfifo.put; - e->gp_wrap = c->gpfifo.wrap; e->mem = &q->mem; /* if we have increased size to skip free space in the end, set put @@ -2163,9 +2160,6 @@ int gk20a_submit_channel_gpfifo(struct channel_gk20a *c, c->gpfifo.put = (c->gpfifo.put + 1) & (c->gpfifo.entry_num - 1); - - /* save gp_put */ - wait_cmd->gp_put = c->gpfifo.put; } /* @@ -2250,9 +2244,6 @@ int gk20a_submit_channel_gpfifo(struct channel_gk20a *c, c->gpfifo.put = (c->gpfifo.put + 1) & (c->gpfifo.entry_num - 1); - - /* save gp_put */ - incr_cmd->gp_put = c->gpfifo.put; } mutex_lock(&c->last_submit.fence_lock); -- cgit v1.2.2