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/gp106/clk_gp106.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/gp106/clk_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/clk_gp106.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gp106/clk_gp106.c b/drivers/gpu/nvgpu/gp106/clk_gp106.c index 105f8bd5..bcf95b01 100644 --- a/drivers/gpu/nvgpu/gp106/clk_gp106.c +++ b/drivers/gpu/nvgpu/gp106/clk_gp106.c | |||
@@ -23,9 +23,6 @@ | |||
23 | #include <nvgpu/kmem.h> | 23 | #include <nvgpu/kmem.h> |
24 | 24 | ||
25 | #include "gk20a/gk20a.h" | 25 | #include "gk20a/gk20a.h" |
26 | #ifdef CONFIG_DEBUG_FS | ||
27 | #include "gk20a/platform_gk20a.h" | ||
28 | #endif | ||
29 | #include "common/linux/os_linux.h" | 26 | #include "common/linux/os_linux.h" |
30 | 27 | ||
31 | #include "clk_gp106.h" | 28 | #include "clk_gp106.h" |
@@ -240,10 +237,10 @@ static int gp106_get_rate_show(void *data , u64 *val) { | |||
240 | DEFINE_SIMPLE_ATTRIBUTE(get_rate_fops, gp106_get_rate_show, NULL, "%llu\n"); | 237 | DEFINE_SIMPLE_ATTRIBUTE(get_rate_fops, gp106_get_rate_show, NULL, "%llu\n"); |
241 | 238 | ||
242 | 239 | ||
243 | static int clk_gp106_debugfs_init(struct gk20a *g) { | 240 | static int clk_gp106_debugfs_init(struct gk20a *g) |
244 | struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g)); | 241 | { |
245 | 242 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); | |
246 | struct dentry *gpu_root = platform->debugfs; | 243 | struct dentry *gpu_root = l->debugfs; |
247 | struct dentry *clocks_root; | 244 | struct dentry *clocks_root; |
248 | struct dentry *d; | 245 | struct dentry *d; |
249 | unsigned int i; | 246 | unsigned int i; |