From a596f0bd6d327ce832adca4ae915529dc0bb0b3b Mon Sep 17 00:00:00 2001 From: Alex Van Brunt Date: Wed, 30 Mar 2016 15:29:30 -0700 Subject: debugfs: Pass bool pointer to debugfs_create_bool() Port the change 621a5f7ad9cd1ce7933f1d302067cbd58354173c from kernel.org to the nvgpu driver. bug 200187033 Change-Id: I7d742f614161d9d4ed59c4216d7c730d57ef4116 Signed-off-by: Alex Van Brunt Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/1118397 GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani --- drivers/gpu/nvgpu/gk20a/gk20a.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 0887ab5e..db5cb56d 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -33,6 +33,7 @@ struct acr_gm20b; #include #include #include +#include #include "../../../arch/arm/mach-tegra/iomap.h" @@ -559,7 +560,11 @@ struct gk20a { const struct firmware *pmu_fw; u32 gr_idle_timeout_default; +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0) u32 timeouts_enabled; +#else + bool timeouts_enabled; +#endif struct mutex ch_wdt_lock; @@ -569,7 +574,11 @@ struct gk20a { u32 timeslice_low_priority_us; u32 timeslice_medium_priority_us; u32 timeslice_high_priority_us; +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0) u32 runlist_interleave; +#else + bool runlist_interleave; +#endif bool slcg_enabled; bool blcg_enabled; -- cgit v1.2.2