mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
Currently, buddy, page and bitmap allocators have individual init() functions. This patch creates common nvgpu_alloc_allocator_init() function to trigger the individual functions based on allocator type argument. This makes writing requirements for the allocators easier. Jira NVGPU-991 Change-Id: If94e3496f46f036460ef9f1831852e6fc19d3a0b Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2097962 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>