diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/mm_gp10b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/mm_gp10b.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/mm_gp10b.h b/drivers/gpu/nvgpu/gp10b/mm_gp10b.h index 034944e0..f34200a0 100644 --- a/drivers/gpu/nvgpu/gp10b/mm_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/mm_gp10b.h | |||
@@ -14,8 +14,16 @@ | |||
14 | #ifndef MM_GP10B_H | 14 | #ifndef MM_GP10B_H |
15 | #define MM_GP10B_H | 15 | #define MM_GP10B_H |
16 | 16 | ||
17 | #include <linux/version.h> | ||
18 | |||
17 | #define NVGPU_MM_GET_IO_COHERENCE_BIT 35 | 19 | #define NVGPU_MM_GET_IO_COHERENCE_BIT 35 |
18 | 20 | ||
21 | #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0) | ||
22 | #define NVGPU_USE_NEW_ALLOCATOR 1 | ||
23 | #else | ||
24 | #define NVGPU_USE_NEW_ALLOCATOR 0 | ||
25 | #endif | ||
26 | |||
19 | struct gpu_ops; | 27 | struct gpu_ops; |
20 | 28 | ||
21 | void gp10b_init_mm(struct gpu_ops *gops); | 29 | void gp10b_init_mm(struct gpu_ops *gops); |