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/common/linux/debug_sched.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/common/linux/debug_sched.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/debug_sched.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/debug_sched.c b/drivers/gpu/nvgpu/common/linux/debug_sched.c index c0dcf8d9..a42deb18 100644 --- a/drivers/gpu/nvgpu/common/linux/debug_sched.c +++ b/drivers/gpu/nvgpu/common/linux/debug_sched.c | |||
@@ -13,7 +13,6 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include "debug_sched.h" | 15 | #include "debug_sched.h" |
16 | #include "gk20a/platform_gk20a.h" | ||
17 | #include "os_linux.h" | 16 | #include "os_linux.h" |
18 | 17 | ||
19 | #include <linux/debugfs.h> | 18 | #include <linux/debugfs.h> |
@@ -73,8 +72,8 @@ static const struct file_operations gk20a_sched_debugfs_fops = { | |||
73 | 72 | ||
74 | void gk20a_sched_debugfs_init(struct gk20a *g) | 73 | void gk20a_sched_debugfs_init(struct gk20a *g) |
75 | { | 74 | { |
76 | struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g)); | 75 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); |
77 | 76 | ||
78 | debugfs_create_file("sched_ctrl", S_IRUGO, platform->debugfs, | 77 | debugfs_create_file("sched_ctrl", S_IRUGO, l->debugfs, |
79 | g, &gk20a_sched_debugfs_fops); | 78 | g, &gk20a_sched_debugfs_fops); |
80 | } | 79 | } |