mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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>
This commit is contained in:
@@ -1119,7 +1119,7 @@ int __gk20a_buddy_allocator_init(struct gk20a_allocator *__a,
|
||||
if (!a)
|
||||
return -ENOMEM;
|
||||
|
||||
err = __gk20a_alloc_common_init(__a, name, a, &buddy_ops);
|
||||
err = __gk20a_alloc_common_init(__a, name, a, false, &buddy_ops);
|
||||
if (err)
|
||||
goto fail;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user