summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/debug_ce.c
diff options
context:
space:
mode:
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}