From bc87e8989ddf2f74ff2c988a25e4a81e559a5c30 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 22 Aug 2017 08:31:32 -0700 Subject: gpu: nvgpu: Remove support for old kernel version Remove support for pre-4.4 kernels. This allows deleting the checks for kernel version, and usage of linux/version.h. Change-Id: I4d6cb30512ea164d27549f4f4d096e5931bb1379 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1543499 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index af176a73..e8b90c8f 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h @@ -20,7 +20,6 @@ #include #include -#include #include #include @@ -248,24 +247,15 @@ struct mm_gk20a { bool use_full_comp_tag_line; bool ltc_enabled_current; bool ltc_enabled_target; -#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0) - u32 bypass_smmu; - u32 disable_bigpage; -#else bool bypass_smmu; bool disable_bigpage; -#endif bool has_physical_mode; struct nvgpu_mem sysmem_flush; u32 pramin_window; struct nvgpu_spinlock pramin_window_lock; -#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0) - u32 force_pramin; /* via debugfs */ -#else bool force_pramin; /* via debugfs */ -#endif struct { size_t size; -- cgit v1.2.2