diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/bitmap_allocator.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/mm/bitmap_allocator.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/bitmap_allocator.c b/drivers/gpu/nvgpu/common/mm/bitmap_allocator.c index eae0475a..274e9c93 100644 --- a/drivers/gpu/nvgpu/common/mm/bitmap_allocator.c +++ b/drivers/gpu/nvgpu/common/mm/bitmap_allocator.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <nvgpu/allocator.h> | 18 | #include <nvgpu/allocator.h> |
19 | #include <nvgpu/kmem.h> | 19 | #include <nvgpu/kmem.h> |
20 | #include <nvgpu/bug.h> | 20 | #include <nvgpu/bug.h> |
21 | #include <nvgpu/barrier.h> | ||
21 | 22 | ||
22 | #include "bitmap_allocator_priv.h" | 23 | #include "bitmap_allocator_priv.h" |
23 | 24 | ||
@@ -40,7 +41,7 @@ static int nvgpu_bitmap_alloc_inited(struct nvgpu_allocator *a) | |||
40 | struct nvgpu_bitmap_allocator *ba = a->priv; | 41 | struct nvgpu_bitmap_allocator *ba = a->priv; |
41 | int inited = ba->inited; | 42 | int inited = ba->inited; |
42 | 43 | ||
43 | rmb(); | 44 | nvgpu_smp_rmb(); |
44 | return inited; | 45 | return inited; |
45 | } | 46 | } |
46 | 47 | ||
@@ -408,7 +409,7 @@ int nvgpu_bitmap_allocator_init(struct gk20a *g, struct nvgpu_allocator *__a, | |||
408 | goto fail; | 409 | goto fail; |
409 | } | 410 | } |
410 | 411 | ||
411 | wmb(); | 412 | nvgpu_smp_wmb(); |
412 | a->inited = true; | 413 | a->inited = true; |
413 | 414 | ||
414 | #ifdef CONFIG_DEBUG_FS | 415 | #ifdef CONFIG_DEBUG_FS |