summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-04-21 15:42:57 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-04-24 14:05:17 -0400
commitb3e1ce04b963e91b9b425b3c35cc4eff11db7543 (patch)
tree73c45d0acfe3ce25298ba1dc8dfa4777e02c861a /drivers/gpu/nvgpu/gk20a/gk20a.h
parentb88c9ad793cb9822f359b8c498afe872c412959c (diff)
gpu: nvgpu: Put debugfs dependencies inside #ifdef
Put all debugfs dependencies inside #ifdef CONFIG_DEBUG_FS. This includes some functions in allocators that were used only for debugging. Remove include of linux/debugfs.h on files that do not deal with debugfs. linux/debugfs.h implicitly included linux/fs.h, which we relied on. Add explicit include of linux/fs.h for all files where this is the case. Change-Id: I16feffae6b0e3a2edf366075cdc01ade86be06f9 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1467897 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index a1700ebf..7c8b4eae 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -35,6 +35,9 @@ struct dbg_profiler_object_data;
35#include <linux/irqreturn.h> 35#include <linux/irqreturn.h>
36#include <linux/version.h> 36#include <linux/version.h>
37#include <linux/cdev.h> 37#include <linux/cdev.h>
38#ifdef CONFIG_DEBUG_FS
39#include <linux/debugfs.h>
40#endif
38 41
39#include "../../../arch/arm/mach-tegra/iomap.h" 42#include "../../../arch/arm/mach-tegra/iomap.h"
40 43
@@ -150,7 +153,9 @@ struct gpu_ops {
150 struct zbc_entry *s_val, 153 struct zbc_entry *s_val,
151 u32 index); 154 u32 index);
152 void (*init_cbc)(struct gk20a *g, struct gr_gk20a *gr); 155 void (*init_cbc)(struct gk20a *g, struct gr_gk20a *gr);
156#ifdef CONFIG_DEBUG_FS
153 void (*sync_debugfs)(struct gk20a *g); 157 void (*sync_debugfs)(struct gk20a *g);
158#endif
154 void (*init_fs_state)(struct gk20a *g); 159 void (*init_fs_state)(struct gk20a *g);
155 void (*isr)(struct gk20a *g); 160 void (*isr)(struct gk20a *g);
156 u32 (*cbc_fix_config)(struct gk20a *g, int base); 161 u32 (*cbc_fix_config)(struct gk20a *g, int base);
@@ -669,7 +674,9 @@ struct gpu_ops {
669 struct { 674 struct {
670 int (*init_therm_setup_hw)(struct gk20a *g); 675 int (*init_therm_setup_hw)(struct gk20a *g);
671 int (*elcg_init_idle_filters)(struct gk20a *g); 676 int (*elcg_init_idle_filters)(struct gk20a *g);
677#ifdef CONFIG_DEBUG_FS
672 void (*therm_debugfs_init)(struct gk20a *g); 678 void (*therm_debugfs_init)(struct gk20a *g);
679#endif
673 int (*get_internal_sensor_curr_temp)(struct gk20a *g, u32 *temp_f24_8); 680 int (*get_internal_sensor_curr_temp)(struct gk20a *g, u32 *temp_f24_8);
674 void (*get_internal_sensor_limits)(s32 *max_24_8, 681 void (*get_internal_sensor_limits)(s32 *max_24_8,
675 s32 *min_24_8); 682 s32 *min_24_8);
@@ -1140,7 +1147,9 @@ struct gk20a {
1140 u32 tpc_fs_mask_user; 1147 u32 tpc_fs_mask_user;
1141 1148
1142 struct nvgpu_bios bios; 1149 struct nvgpu_bios bios;
1150#ifdef CONFIG_DEBUG_FS
1143 struct debugfs_blob_wrapper bios_blob; 1151 struct debugfs_blob_wrapper bios_blob;
1152#endif
1144 1153
1145 struct nvgpu_clk_arb *clk_arb; 1154 struct nvgpu_clk_arb *clk_arb;
1146 1155