summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/debug_ce.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-07-27 16:31:32 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-08-04 12:24:02 -0400
commit972c42fddf13f658242a4f92124e5fcf194672b3 (patch)
tree8b679b522be90f8980fb05d2641fbb9eaca768d6 /drivers/gpu/nvgpu/common/linux/debug_ce.c
parentb8efd9d04537d6129e2ce8b067417e46b0e7436f (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_ce.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/debug_ce.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/debug_ce.c b/drivers/gpu/nvgpu/common/linux/debug_ce.c
index 1c2d4170..cea0bb47 100644
--- a/drivers/gpu/nvgpu/common/linux/debug_ce.c
+++ b/drivers/gpu/nvgpu/common/linux/debug_ce.c
@@ -13,19 +13,18 @@
13 */ 13 */
14 14
15#include "debug_ce.h" 15#include "debug_ce.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>
20 19
21void gk20a_ce_debugfs_init(struct gk20a *g) 20void gk20a_ce_debugfs_init(struct gk20a *g)
22{ 21{
23 struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g)); 22 struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g);
24 23
25 debugfs_create_u32("ce_app_ctx_count", S_IWUSR | S_IRUGO, 24 debugfs_create_u32("ce_app_ctx_count", S_IWUSR | S_IRUGO,
26 platform->debugfs, &g->ce_app.ctx_count); 25 l->debugfs, &g->ce_app.ctx_count);
27 debugfs_create_u32("ce_app_state", S_IWUSR | S_IRUGO, 26 debugfs_create_u32("ce_app_state", S_IWUSR | S_IRUGO,
28 platform->debugfs, &g->ce_app.app_state); 27 l->debugfs, &g->ce_app.app_state);
29 debugfs_create_u32("ce_app_next_ctx_id", S_IWUSR | S_IRUGO, 28 debugfs_create_u32("ce_app_next_ctx_id", S_IWUSR | S_IRUGO,
30 platform->debugfs, &g->ce_app.next_ctx_id); 29 l->debugfs, &g->ce_app.next_ctx_id);
31} 30}