diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/buddy_allocator.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/mm/buddy_allocator.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/buddy_allocator.c b/drivers/gpu/nvgpu/common/mm/buddy_allocator.c index 34bc51df..0ef94c10 100644 --- a/drivers/gpu/nvgpu/common/mm/buddy_allocator.c +++ b/drivers/gpu/nvgpu/common/mm/buddy_allocator.c | |||
@@ -251,7 +251,9 @@ static void nvgpu_buddy_allocator_destroy(struct nvgpu_allocator *__a) | |||
251 | 251 | ||
252 | alloc_lock(__a); | 252 | alloc_lock(__a); |
253 | 253 | ||
254 | #ifdef CONFIG_DEBUG_FS | ||
254 | nvgpu_fini_alloc_debug(__a); | 255 | nvgpu_fini_alloc_debug(__a); |
256 | #endif | ||
255 | 257 | ||
256 | /* | 258 | /* |
257 | * Free the fixed allocs first. | 259 | * Free the fixed allocs first. |
@@ -1290,7 +1292,9 @@ int __nvgpu_buddy_allocator_init(struct gk20a *g, struct nvgpu_allocator *__a, | |||
1290 | wmb(); | 1292 | wmb(); |
1291 | a->initialized = 1; | 1293 | a->initialized = 1; |
1292 | 1294 | ||
1295 | #ifdef CONFIG_DEBUG_FS | ||
1293 | nvgpu_init_alloc_debug(g, __a); | 1296 | nvgpu_init_alloc_debug(g, __a); |
1297 | #endif | ||
1294 | alloc_dbg(__a, "New allocator: type buddy\n"); | 1298 | alloc_dbg(__a, "New allocator: type buddy\n"); |
1295 | alloc_dbg(__a, " base 0x%llx\n", a->base); | 1299 | alloc_dbg(__a, " base 0x%llx\n", a->base); |
1296 | alloc_dbg(__a, " size 0x%llx\n", a->length); | 1300 | alloc_dbg(__a, " size 0x%llx\n", a->length); |