diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-01-12 21:50:34 -0500 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2017-02-13 21:14:45 -0500 |
commit | aa36d3786aeed6755b9744fed37aad000b582322 (patch) | |
tree | d68d71632a01062e00fc2b057c5a0c37dfda4fb8 /drivers/gpu/nvgpu/gk20a/debug_gk20a.c | |
parent | b9194a1c3300e505d22fba97136dd305300397f0 (diff) |
gpu: nvgpu: Organize semaphore_gk20a.[ch]
Move semaphore_gk20a.c drivers/gpu/nvgpu/common/ since the semaphore
code is common to all chips.
Move the semaphore_gk20a.h header file to drivers/gpu/nvgpu/include/nvgpu
and rename it to semaphore.h. Also update all places where the header
is inluced to use the new path.
This revealed an odd location for the enum gk20a_mem_rw_flag. This should
be in the mm headers. As a result many places that did not need anything
semaphore related had to include the semaphore header file. Fixing this
oddity allowed the semaphore include to be removed from many C files that
did not need it.
Bug 1799159
Change-Id: Ie017219acf34c4c481747323b9f3ac33e76e064c
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1284627
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/debug_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/debug_gk20a.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c index 37ba720a..83fdc05d 100644 --- a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c | |||
@@ -1,6 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * drivers/video/tegra/host/t20/debug_gk20a.c | ||
3 | * | ||
4 | * Copyright (C) 2011-2017 NVIDIA Corporation. All rights reserved. | 2 | * Copyright (C) 2011-2017 NVIDIA Corporation. All rights reserved. |
5 | * | 3 | * |
6 | * This software is licensed under the terms of the GNU General Public | 4 | * This software is licensed under the terms of the GNU General Public |
@@ -20,12 +18,12 @@ | |||
20 | 18 | ||
21 | #include <linux/debugfs.h> | 19 | #include <linux/debugfs.h> |
22 | #include <linux/seq_file.h> | 20 | #include <linux/seq_file.h> |
23 | |||
24 | #include <linux/io.h> | 21 | #include <linux/io.h> |
25 | 22 | ||
23 | #include <nvgpu/semaphore.h> | ||
24 | |||
26 | #include "gk20a.h" | 25 | #include "gk20a.h" |
27 | #include "debug_gk20a.h" | 26 | #include "debug_gk20a.h" |
28 | #include "semaphore_gk20a.h" | ||
29 | 27 | ||
30 | #include <nvgpu/hw/gk20a/hw_ram_gk20a.h> | 28 | #include <nvgpu/hw/gk20a/hw_ram_gk20a.h> |
31 | #include <nvgpu/hw/gk20a/hw_fifo_gk20a.h> | 29 | #include <nvgpu/hw/gk20a/hw_fifo_gk20a.h> |