diff options
author | Alex Waterman <alexw@nvidia.com> | 2018-02-20 20:42:35 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-03-30 17:53:54 -0400 |
commit | 6ca2c12607c24d0888dcde91080cb21b28c250fb (patch) | |
tree | d4aeb803972504ec5c34870a1e7dfc55b6b87548 /drivers/gpu/nvgpu/gk20a | |
parent | f07b2df173d9bde832c5bf7d7f3b498b533dcb22 (diff) |
gpu: nvgpu: channel_gk20a.c cleanup for POSIX
Remove a variable which is assigned to but never used.
Add proper include (<nvgpu/log2.h>) for ilog2().
JIRA NVGPU-525
Change-Id: I42f3fddad9c294dc64343082e1dbd44b19120089
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1673816
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index e3d9b53a..8b9f02df 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c | |||
@@ -41,6 +41,7 @@ | |||
41 | #include <nvgpu/ctxsw_trace.h> | 41 | #include <nvgpu/ctxsw_trace.h> |
42 | #include <nvgpu/error_notifier.h> | 42 | #include <nvgpu/error_notifier.h> |
43 | #include <nvgpu/os_sched.h> | 43 | #include <nvgpu/os_sched.h> |
44 | #include <nvgpu/log2.h> | ||
44 | 45 | ||
45 | #include "gk20a.h" | 46 | #include "gk20a.h" |
46 | #include "dbg_gpu_gk20a.h" | 47 | #include "dbg_gpu_gk20a.h" |
@@ -288,7 +289,6 @@ static void gk20a_free_channel(struct channel_gk20a *ch, bool force) | |||
288 | struct dbg_session_gk20a *dbg_s; | 289 | struct dbg_session_gk20a *dbg_s; |
289 | struct dbg_session_data *session_data, *tmp_s; | 290 | struct dbg_session_data *session_data, *tmp_s; |
290 | struct dbg_session_channel_data *ch_data, *tmp; | 291 | struct dbg_session_channel_data *ch_data, *tmp; |
291 | bool was_tsg = false; | ||
292 | int err; | 292 | int err; |
293 | 293 | ||
294 | gk20a_dbg_fn(""); | 294 | gk20a_dbg_fn(""); |
@@ -313,13 +313,6 @@ static void gk20a_free_channel(struct channel_gk20a *ch, bool force) | |||
313 | nvgpu_err(g, | 313 | nvgpu_err(g, |
314 | "failed to unbind channel %d from TSG", | 314 | "failed to unbind channel %d from TSG", |
315 | ch->chid); | 315 | ch->chid); |
316 | /* | ||
317 | * Channel is not a part of TSG this point onwards | ||
318 | * So stash its status and use it whenever necessary | ||
319 | * e.g. while releasing gr_ctx in | ||
320 | * g->ops.gr.free_channel_ctx() | ||
321 | */ | ||
322 | was_tsg = true; | ||
323 | } else { | 316 | } else { |
324 | gk20a_disable_channel(ch); | 317 | gk20a_disable_channel(ch); |
325 | } | 318 | } |