diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-07-27 16:31:32 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-04 12:24:02 -0400 |
commit | 972c42fddf13f658242a4f92124e5fcf194672b3 (patch) | |
tree | 8b679b522be90f8980fb05d2641fbb9eaca768d6 /drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | |
parent | b8efd9d04537d6129e2ce8b067417e46b0e7436f (diff) |
gpu: nvgpu: Move debugfs fields to os_linux
Move all Linux specific debugfs dentry fields to struct
nvgpu_os_linux.
JIRA NVGPU-62
Change-Id: I615620005f5d042943dd2e478c1629bcc912c550
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1528263
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 | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c index 84bf20b8..5ee90440 100644 --- a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | |||
@@ -27,7 +27,6 @@ | |||
27 | #include "fecs_trace_gk20a.h" | 27 | #include "fecs_trace_gk20a.h" |
28 | #include "gk20a.h" | 28 | #include "gk20a.h" |
29 | #include "gr_gk20a.h" | 29 | #include "gr_gk20a.h" |
30 | #include "platform_gk20a.h" | ||
31 | #include "common/linux/os_linux.h" | 30 | #include "common/linux/os_linux.h" |
32 | 31 | ||
33 | #include <nvgpu/log.h> | 32 | #include <nvgpu/log.h> |
@@ -537,21 +536,21 @@ DEFINE_SIMPLE_ATTRIBUTE(gk20a_fecs_trace_debugfs_write_fops, | |||
537 | 536 | ||
538 | static void gk20a_fecs_trace_debugfs_init(struct gk20a *g) | 537 | static void gk20a_fecs_trace_debugfs_init(struct gk20a *g) |
539 | { | 538 | { |
540 | struct gk20a_platform *plat = dev_get_drvdata(dev_from_gk20a(g)); | 539 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); |
541 | 540 | ||
542 | debugfs_create_file("ctxsw_trace_read", 0600, plat->debugfs, g, | 541 | debugfs_create_file("ctxsw_trace_read", 0600, l->debugfs, g, |
543 | &gk20a_fecs_trace_debugfs_read_fops); | 542 | &gk20a_fecs_trace_debugfs_read_fops); |
544 | debugfs_create_file("ctxsw_trace_write", 0600, plat->debugfs, g, | 543 | debugfs_create_file("ctxsw_trace_write", 0600, l->debugfs, g, |
545 | &gk20a_fecs_trace_debugfs_write_fops); | 544 | &gk20a_fecs_trace_debugfs_write_fops); |
546 | debugfs_create_file("ctxsw_trace_ring", 0600, plat->debugfs, g, | 545 | debugfs_create_file("ctxsw_trace_ring", 0600, l->debugfs, g, |
547 | &gk20a_fecs_trace_debugfs_ring_fops); | 546 | &gk20a_fecs_trace_debugfs_ring_fops); |
548 | } | 547 | } |
549 | 548 | ||
550 | static void gk20a_fecs_trace_debugfs_cleanup(struct gk20a *g) | 549 | static void gk20a_fecs_trace_debugfs_cleanup(struct gk20a *g) |
551 | { | 550 | { |
552 | struct gk20a_platform *plat = dev_get_drvdata(dev_from_gk20a(g)); | 551 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); |
553 | 552 | ||
554 | debugfs_remove_recursive(plat->debugfs); | 553 | debugfs_remove_recursive(l->debugfs); |
555 | } | 554 | } |
556 | 555 | ||
557 | #else | 556 | #else |