summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2016-04-12 06:39:48 -0400
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:52:11 -0500
commit9acab4c9759c23cc355839187f7c07c48b4dc017 (patch)
tree07ff39206f14f7575ad4f2bbf3ebffe2da20933f /drivers/gpu/nvgpu/gp10b/gr_gp10b.h
parent03614bff771ee7ca93382d4464b1df373b6fe501 (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/nvgpu/gp10b/gr_gp10b.h')
-rw-r--r--drivers/gpu/nvgpu/gp10b/gr_gp10b.h8
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
19struct gpu_ops; 21struct gpu_ops;
20 22
21enum { 23enum {
@@ -46,9 +48,15 @@ struct ecc_stat {
46struct gr_t18x { 48struct 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;