diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c index 1572ff48..00050850 100644 --- a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <nvgpu/kmem.h> | 26 | #include <nvgpu/kmem.h> |
27 | #include <nvgpu/log.h> | 27 | #include <nvgpu/log.h> |
28 | #include <nvgpu/vm.h> | 28 | #include <nvgpu/vm.h> |
29 | #include <nvgpu/atomic.h> | ||
29 | 30 | ||
30 | #include "gk20a.h" | 31 | #include "gk20a.h" |
31 | #include "gk20a/platform_gk20a.h" | 32 | #include "gk20a/platform_gk20a.h" |
@@ -74,10 +75,10 @@ nvgpu_dbg_gpu_get_session_channel(struct dbg_session_gk20a *dbg_s) | |||
74 | } | 75 | } |
75 | 76 | ||
76 | /* silly allocator - just increment id */ | 77 | /* silly allocator - just increment id */ |
77 | static atomic_t unique_id = ATOMIC_INIT(0); | 78 | static nvgpu_atomic_t unique_id = NVGPU_ATOMIC_INIT(0); |
78 | static int generate_unique_id(void) | 79 | static int generate_unique_id(void) |
79 | { | 80 | { |
80 | return atomic_add_return(1, &unique_id); | 81 | return nvgpu_atomic_add_return(1, &unique_id); |
81 | } | 82 | } |
82 | 83 | ||
83 | static int alloc_session(struct gk20a *g, struct dbg_session_gk20a **_dbg_s) | 84 | static int alloc_session(struct gk20a *g, struct dbg_session_gk20a **_dbg_s) |