summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
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 0887ab5e..db5cb56d 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -33,6 +33,7 @@ struct acr_gm20b;
33#include <linux/nvgpu.h> 33#include <linux/nvgpu.h>
34#include <linux/irqreturn.h> 34#include <linux/irqreturn.h>
35#include <linux/tegra-soc.h> 35#include <linux/tegra-soc.h>
36#include <linux/version.h>
36 37
37#include "../../../arch/arm/mach-tegra/iomap.h" 38#include "../../../arch/arm/mach-tegra/iomap.h"
38 39
@@ -559,7 +560,11 @@ struct gk20a {
559 const struct firmware *pmu_fw; 560 const struct firmware *pmu_fw;
560 561
561 u32 gr_idle_timeout_default; 562 u32 gr_idle_timeout_default;
563#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0)
562 u32 timeouts_enabled; 564 u32 timeouts_enabled;
565#else
566 bool timeouts_enabled;
567#endif
563 568
564 struct mutex ch_wdt_lock; 569 struct mutex ch_wdt_lock;
565 570
@@ -569,7 +574,11 @@ struct gk20a {
569 u32 timeslice_low_priority_us; 574 u32 timeslice_low_priority_us;
570 u32 timeslice_medium_priority_us; 575 u32 timeslice_medium_priority_us;
571 u32 timeslice_high_priority_us; 576 u32 timeslice_high_priority_us;
577#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0)
572 u32 runlist_interleave; 578 u32 runlist_interleave;
579#else
580 bool runlist_interleave;
581#endif
573 582
574 bool slcg_enabled; 583 bool slcg_enabled;
575 bool blcg_enabled; 584 bool blcg_enabled;