diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/therm_gk20a.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 042bd9d7..504da848 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -571,6 +571,7 @@ struct gpu_ops { | |||
571 | struct { | 571 | struct { |
572 | int (*init_therm_setup_hw)(struct gk20a *g); | 572 | int (*init_therm_setup_hw)(struct gk20a *g); |
573 | int (*update_therm_gate_ctrl)(struct gk20a *g); | 573 | int (*update_therm_gate_ctrl)(struct gk20a *g); |
574 | void (*therm_debugfs_init)(struct gk20a *g); | ||
574 | } therm; | 575 | } therm; |
575 | struct { | 576 | struct { |
576 | int (*prepare_ucode)(struct gk20a *g); | 577 | int (*prepare_ucode)(struct gk20a *g); |
diff --git a/drivers/gpu/nvgpu/gk20a/therm_gk20a.c b/drivers/gpu/nvgpu/gk20a/therm_gk20a.c index 1fb60438..da8e2894 100644 --- a/drivers/gpu/nvgpu/gk20a/therm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/therm_gk20a.c | |||
@@ -104,6 +104,9 @@ int gk20a_init_therm_support(struct gk20a *g) | |||
104 | if (err) | 104 | if (err) |
105 | return err; | 105 | return err; |
106 | 106 | ||
107 | if (g->ops.therm.therm_debugfs_init) | ||
108 | g->ops.therm.therm_debugfs_init(g); | ||
109 | |||
107 | return err; | 110 | return err; |
108 | } | 111 | } |
109 | 112 | ||