diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_allocator_buddy.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_allocator_buddy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_allocator_buddy.c b/drivers/gpu/nvgpu/gk20a/gk20a_allocator_buddy.c index 70a10c24..ee5e69d2 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_allocator_buddy.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_allocator_buddy.c | |||
@@ -1078,6 +1078,7 @@ static int gk20a_buddy_alloc_inited(struct gk20a_allocator *a) | |||
1078 | { | 1078 | { |
1079 | struct gk20a_buddy_allocator *ba = a->priv; | 1079 | struct gk20a_buddy_allocator *ba = a->priv; |
1080 | 1080 | ||
1081 | rmb(); | ||
1081 | return ba->initialized; | 1082 | return ba->initialized; |
1082 | } | 1083 | } |
1083 | 1084 | ||
@@ -1284,6 +1285,7 @@ int __gk20a_buddy_allocator_init(struct gk20a_allocator *__a, | |||
1284 | if (err) | 1285 | if (err) |
1285 | goto fail; | 1286 | goto fail; |
1286 | 1287 | ||
1288 | wmb(); | ||
1287 | a->initialized = 1; | 1289 | a->initialized = 1; |
1288 | 1290 | ||
1289 | gk20a_init_alloc_debug(__a); | 1291 | gk20a_init_alloc_debug(__a); |