diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-08-22 11:31:32 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-22 15:44:41 -0400 |
commit | bc87e8989ddf2f74ff2c988a25e4a81e559a5c30 (patch) | |
tree | b8c45cecf50e3e3bb8967952de9f5047de60683f /drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |
parent | 587666bd6cbb60e52698052c2b5c4a74f2165ecd (diff) |
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 <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1543499
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 10 |
1 files changed, 0 insertions, 10 deletions
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 @@ | |||
20 | 20 | ||
21 | #include <linux/scatterlist.h> | 21 | #include <linux/scatterlist.h> |
22 | #include <linux/iommu.h> | 22 | #include <linux/iommu.h> |
23 | #include <linux/version.h> | ||
24 | #include <asm/dma-iommu.h> | 23 | #include <asm/dma-iommu.h> |
25 | #include <asm/cacheflush.h> | 24 | #include <asm/cacheflush.h> |
26 | 25 | ||
@@ -248,24 +247,15 @@ struct mm_gk20a { | |||
248 | bool use_full_comp_tag_line; | 247 | bool use_full_comp_tag_line; |
249 | bool ltc_enabled_current; | 248 | bool ltc_enabled_current; |
250 | bool ltc_enabled_target; | 249 | bool ltc_enabled_target; |
251 | #if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0) | ||
252 | u32 bypass_smmu; | ||
253 | u32 disable_bigpage; | ||
254 | #else | ||
255 | bool bypass_smmu; | 250 | bool bypass_smmu; |
256 | bool disable_bigpage; | 251 | bool disable_bigpage; |
257 | #endif | ||
258 | bool has_physical_mode; | 252 | bool has_physical_mode; |
259 | 253 | ||
260 | struct nvgpu_mem sysmem_flush; | 254 | struct nvgpu_mem sysmem_flush; |
261 | 255 | ||
262 | u32 pramin_window; | 256 | u32 pramin_window; |
263 | struct nvgpu_spinlock pramin_window_lock; | 257 | struct nvgpu_spinlock pramin_window_lock; |
264 | #if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0) | ||
265 | u32 force_pramin; /* via debugfs */ | ||
266 | #else | ||
267 | bool force_pramin; /* via debugfs */ | 258 | bool force_pramin; /* via debugfs */ |
268 | #endif | ||
269 | 259 | ||
270 | struct { | 260 | struct { |
271 | size_t size; | 261 | size_t size; |