diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_allocator_bitmap.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_allocator_bitmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_allocator_bitmap.c b/drivers/gpu/nvgpu/gk20a/gk20a_allocator_bitmap.c index 29f52081..2291a953 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_allocator_bitmap.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_allocator_bitmap.c | |||
@@ -42,6 +42,7 @@ static int gk20a_bitmap_alloc_inited(struct gk20a_allocator *a) | |||
42 | { | 42 | { |
43 | struct gk20a_bitmap_allocator *ba = a->priv; | 43 | struct gk20a_bitmap_allocator *ba = a->priv; |
44 | 44 | ||
45 | rmb(); | ||
45 | return ba->inited; | 46 | return ba->inited; |
46 | } | 47 | } |
47 | 48 | ||
@@ -405,6 +406,7 @@ int gk20a_bitmap_allocator_init(struct gk20a_allocator *__a, | |||
405 | if (!a->bitmap) | 406 | if (!a->bitmap) |
406 | goto fail; | 407 | goto fail; |
407 | 408 | ||
409 | wmb(); | ||
408 | a->inited = true; | 410 | a->inited = true; |
409 | 411 | ||
410 | gk20a_init_alloc_debug(__a); | 412 | gk20a_init_alloc_debug(__a); |