diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_allocator_lockless.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_allocator_lockless.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_allocator_lockless.c b/drivers/gpu/nvgpu/gk20a/gk20a_allocator_lockless.c index 32455c98..5b011d8c 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_allocator_lockless.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_allocator_lockless.c | |||
@@ -102,6 +102,8 @@ static void gk20a_lockless_alloc_destroy(struct gk20a_allocator *a) | |||
102 | { | 102 | { |
103 | struct gk20a_lockless_allocator *pa = a->priv; | 103 | struct gk20a_lockless_allocator *pa = a->priv; |
104 | 104 | ||
105 | gk20a_fini_alloc_debug(a); | ||
106 | |||
105 | vfree(pa->next); | 107 | vfree(pa->next); |
106 | kfree(pa); | 108 | kfree(pa); |
107 | } | 109 | } |
@@ -137,7 +139,7 @@ static const struct gk20a_allocator_ops pool_ops = { | |||
137 | .print_stats = gk20a_lockless_print_stats, | 139 | .print_stats = gk20a_lockless_print_stats, |
138 | }; | 140 | }; |
139 | 141 | ||
140 | int gk20a_lockless_allocator_init(struct gk20a_allocator *__a, | 142 | int gk20a_lockless_allocator_init(struct gk20a *g, struct gk20a_allocator *__a, |
141 | const char *name, u64 base, u64 length, | 143 | const char *name, u64 base, u64 length, |
142 | u64 blk_size, u64 flags) | 144 | u64 blk_size, u64 flags) |
143 | { | 145 | { |
@@ -189,7 +191,7 @@ int gk20a_lockless_allocator_init(struct gk20a_allocator *__a, | |||
189 | wmb(); | 191 | wmb(); |
190 | a->inited = true; | 192 | a->inited = true; |
191 | 193 | ||
192 | gk20a_init_alloc_debug(__a); | 194 | gk20a_init_alloc_debug(g, __a); |
193 | alloc_dbg(__a, "New allocator: type lockless\n"); | 195 | alloc_dbg(__a, "New allocator: type lockless\n"); |
194 | alloc_dbg(__a, " base 0x%llx\n", a->base); | 196 | alloc_dbg(__a, " base 0x%llx\n", a->base); |
195 | alloc_dbg(__a, " nodes %d\n", a->nr_nodes); | 197 | alloc_dbg(__a, " nodes %d\n", a->nr_nodes); |