diff options
author | Vaibhav Kachore <vkachore@nvidia.com> | 2018-08-20 05:18:33 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-31 15:16:01 -0400 |
commit | eb97fc52a96887d9d85cbdc18eaa7d72eade43b2 (patch) | |
tree | a909a9d48a062db33ffa44162377274aa05dcdd7 /drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | |
parent | 8c8cdacf7a022d1326ec519daa8b8da174aa8f3d (diff) |
gpu: nvgpu: remove use of nvgpu_ctxsw_trace_entry
- Remove the usage of nvgpu_ctxsw_trace_entry splattered
across nvgpu, and replace with a struct defined in common code.
The usage is still inside Linux, but this helps the
subsequent unification efforts, e.g. to unify the fecs trace
path.
- Remove "asm/barrier.h" as "nvgpu/barrier.h" is already
included.
EVLR-3078
Change-Id: Iabfb105b891b0078ed326a8047ef14ebe1888cf2
Signed-off-by: Vaibhav Kachore <vkachore@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1803208
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c index 78b753d1..50077a62 100644 --- a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | |||
@@ -20,7 +20,6 @@ | |||
20 | * DEALINGS IN THE SOFTWARE. | 20 | * DEALINGS IN THE SOFTWARE. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #include <asm/barrier.h> | ||
24 | #ifdef CONFIG_DEBUG_FS | 23 | #ifdef CONFIG_DEBUG_FS |
25 | #include <linux/debugfs.h> | 24 | #include <linux/debugfs.h> |
26 | #endif | 25 | #endif |
@@ -259,7 +258,7 @@ static pid_t gk20a_fecs_trace_find_pid(struct gk20a *g, u32 context_ptr) | |||
259 | static int gk20a_fecs_trace_ring_read(struct gk20a *g, int index) | 258 | static int gk20a_fecs_trace_ring_read(struct gk20a *g, int index) |
260 | { | 259 | { |
261 | int i; | 260 | int i; |
262 | struct nvgpu_ctxsw_trace_entry entry = { }; | 261 | struct nvgpu_gpu_ctxsw_trace_entry entry = { }; |
263 | struct gk20a_fecs_trace *trace = g->fecs_trace; | 262 | struct gk20a_fecs_trace *trace = g->fecs_trace; |
264 | pid_t cur_pid; | 263 | pid_t cur_pid; |
265 | pid_t new_pid; | 264 | pid_t new_pid; |