diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2016-04-12 06:39:48 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:52:11 -0500 |
commit | 9acab4c9759c23cc355839187f7c07c48b4dc017 (patch) | |
tree | 07ff39206f14f7575ad4f2bbf3ebffe2da20933f /drivers/gpu | |
parent | 03614bff771ee7ca93382d4464b1df373b6fe501 (diff) |
gpu: nvgpu: pass bool pointer to debugfs_create_bool()
Port the change 621a5f7ad9cd1ce7933f1d302067cbd58354173c from
kernel.org to the nvgpu driver
Change-Id: I3a8aa873e1f0b601bfe89f836c400113e50b638e
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1125443
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/gr_gp10b.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h index 25509d50..edf536f5 100644 --- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h | |||
@@ -16,6 +16,8 @@ | |||
16 | #ifndef _NVGPU_GR_GP10B_H_ | 16 | #ifndef _NVGPU_GR_GP10B_H_ |
17 | #define _NVGPU_GR_GP10B_H_ | 17 | #define _NVGPU_GR_GP10B_H_ |
18 | 18 | ||
19 | #include <linux/version.h> | ||
20 | |||
19 | struct gpu_ops; | 21 | struct gpu_ops; |
20 | 22 | ||
21 | enum { | 23 | enum { |
@@ -46,9 +48,15 @@ struct ecc_stat { | |||
46 | struct gr_t18x { | 48 | struct gr_t18x { |
47 | struct { | 49 | struct { |
48 | u32 preempt_image_size; | 50 | u32 preempt_image_size; |
51 | #if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0) | ||
49 | u32 force_preemption_gfxp; | 52 | u32 force_preemption_gfxp; |
50 | u32 force_preemption_cilp; | 53 | u32 force_preemption_cilp; |
51 | u32 dump_ctxsw_stats_on_channel_close; | 54 | u32 dump_ctxsw_stats_on_channel_close; |
55 | #else | ||
56 | bool force_preemption_gfxp; | ||
57 | bool force_preemption_cilp; | ||
58 | bool dump_ctxsw_stats_on_channel_close; | ||
59 | #endif | ||
52 | struct dentry *debugfs_force_preemption_cilp; | 60 | struct dentry *debugfs_force_preemption_cilp; |
53 | struct dentry *debugfs_force_preemption_gfxp; | 61 | struct dentry *debugfs_force_preemption_gfxp; |
54 | struct dentry *debugfs_dump_ctxsw_stats; | 62 | struct dentry *debugfs_dump_ctxsw_stats; |