android_kernel_xiaomi_sm7250/drivers/dma-buf
Park Ju Hyung 26d295a1b4 dma_buf: try to use kmem_cache pool for dmabuf allocations
These get allocated and freed millions of times on this kernel tree.
Use a dedicated kmem_cache pool and avoid costly dynamic memory allocations.

Most allocations' size is:
(sizeof(struct dma_buf) + sizeof(struct reservation_object)).

Put those under kmem_cache pool and distinguish them with dmabuf->from_kmem
flag.

Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
[@0ctobot: Adapted for 4.19]
Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
2022-11-12 11:24:40 +00:00
..
dma-buf-ref.c
dma-buf.c dma_buf: try to use kmem_cache pool for dmabuf allocations 2022-11-12 11:24:40 +00:00
dma-fence-array.c
dma-fence.c
Kconfig
Makefile
reservation.c
seqno-fence.c
sw_sync.c
sync_debug.c
sync_debug.h
sync_file.c dma_buf: use kmem_cache pool for struct sync_file 2022-11-12 11:24:40 +00:00
sync_trace.h