diff options
author | Alex Waterman <alexw@nvidia.com> | 2016-12-20 16:55:48 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-01-09 15:33:16 -0500 |
commit | 6df3992b60959d32c7113cb77e131a2547174f3a (patch) | |
tree | efbdc9e6ccd2330d5c469ca0783ecb0137da8fc4 /drivers/gpu/nvgpu/Makefile.nvgpu | |
parent | e229514bece5a109cdbfe263f6329efe987e5939 (diff) |
gpu: nvgpu: Move allocators to common/mm/
Move the GPU allocators to common/mm/ since the allocators are common
code across all GPUs. Also rename the allocator code to move away from
gk20a_ prefixed structs and functions.
This caused one issue with the nvgpu_alloc() and nvgpu_free() functions.
There was a function for allocating either with kmalloc() or vmalloc()
depending on the size of the allocation. Those have now been renamed to
nvgpu_kalloc() and nvgpu_kfree().
Bug 1799159
Change-Id: Iddda92c013612bcb209847084ec85b8953002fa5
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1274400
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/Makefile.nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/Makefile.nvgpu | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/Makefile.nvgpu b/drivers/gpu/nvgpu/Makefile.nvgpu index 93629eff..afce062b 100644 --- a/drivers/gpu/nvgpu/Makefile.nvgpu +++ b/drivers/gpu/nvgpu/Makefile.nvgpu | |||
@@ -23,6 +23,11 @@ obj-$(CONFIG_GK20A) := nvgpu.o | |||
23 | 23 | ||
24 | nvgpu-y := \ | 24 | nvgpu-y := \ |
25 | common/linux/timers.o \ | 25 | common/linux/timers.o \ |
26 | common/mm/nvgpu_allocator.o \ | ||
27 | common/mm/bitmap_allocator.o \ | ||
28 | common/mm/buddy_allocator.o \ | ||
29 | common/mm/page_allocator.o \ | ||
30 | common/mm/lockless_allocator.o \ | ||
26 | nvgpu_common.o \ | 31 | nvgpu_common.o \ |
27 | gk20a/gk20a.o \ | 32 | gk20a/gk20a.o \ |
28 | gk20a/sched_gk20a.o \ | 33 | gk20a/sched_gk20a.o \ |
@@ -51,11 +56,6 @@ nvgpu-y := \ | |||
51 | gk20a/fb_gk20a.o \ | 56 | gk20a/fb_gk20a.o \ |
52 | gk20a/hal.o \ | 57 | gk20a/hal.o \ |
53 | gk20a/hal_gk20a.o \ | 58 | gk20a/hal_gk20a.o \ |
54 | gk20a/gk20a_allocator.o \ | ||
55 | gk20a/gk20a_allocator_bitmap.o \ | ||
56 | gk20a/gk20a_allocator_buddy.o \ | ||
57 | gk20a/gk20a_allocator_page.o \ | ||
58 | gk20a/gk20a_allocator_lockless.o \ | ||
59 | gk20a/cde_gk20a.o \ | 59 | gk20a/cde_gk20a.o \ |
60 | gk20a/platform_gk20a_generic.o \ | 60 | gk20a/platform_gk20a_generic.o \ |
61 | gk20a/tsg_gk20a.o \ | 61 | gk20a/tsg_gk20a.o \ |