summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a_allocator_buddy.c
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2016-07-08 15:15:59 -0400
committerAlex Waterman <alexw@nvidia.com>2016-07-19 14:32:30 -0400
commitf99e05006f9f60b6d0bb5c05a5cdddf5fea4cc81 (patch)
treed91e0c31a2c347044f051e60f32cde6f37bebc8b /drivers/gpu/nvgpu/gk20a/gk20a_allocator_buddy.c
parent0793de62b28bf8dcc655628129fd664862ac9909 (diff)
gpu: nvgpu: smarter debugging for allocators
Allow individual allocacators to be debugged without enabling debugging on all allocators. The ALLOCATOR_DEBUG define will still work as expected and enable debugging for all allocators that see this define. Change-Id: I0d59fa29affeaac15381e65d4128e7bef2f15bd5 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1178689 Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_allocator_buddy.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a_allocator_buddy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_allocator_buddy.c b/drivers/gpu/nvgpu/gk20a/gk20a_allocator_buddy.c
index c006480b..97605800 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a_allocator_buddy.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a_allocator_buddy.c
@@ -1119,7 +1119,7 @@ int __gk20a_buddy_allocator_init(struct gk20a_allocator *__a,
1119 if (!a) 1119 if (!a)
1120 return -ENOMEM; 1120 return -ENOMEM;
1121 1121
1122 err = __gk20a_alloc_common_init(__a, name, a, &buddy_ops); 1122 err = __gk20a_alloc_common_init(__a, name, a, false, &buddy_ops);
1123 if (err) 1123 if (err)
1124 goto fail; 1124 goto fail;
1125 1125