diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 5e2344cf..692f054f 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -64,6 +64,10 @@ struct acr_desc; | |||
64 | #endif | 64 | #endif |
65 | #include "gm206/bios_gm206.h" | 65 | #include "gm206/bios_gm206.h" |
66 | 66 | ||
67 | #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0) | ||
68 | #define WRITE_ONCE(x, val) \ | ||
69 | x = val | ||
70 | #endif | ||
67 | 71 | ||
68 | /* PTIMER_REF_FREQ_HZ corresponds to a period of 32 nanoseconds. | 72 | /* PTIMER_REF_FREQ_HZ corresponds to a period of 32 nanoseconds. |
69 | 32 ns is the resolution of ptimer. */ | 73 | 32 ns is the resolution of ptimer. */ |