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 ion : Merge ion changes for msm-kona kernel upgrade 2019-03-12 19:01:54 -07:00
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: Make ->wait callback optional 2018-07-03 13:12:57 +02:00
dma-fence.c dma-fence: Serialise signal enabling (dma_fence_enable_sw_signaling) 2020-10-01 13:14:24 +02:00
Kconfig Merge android-4.19.73 (8ca5759) into msm-4.19 2020-02-24 07:44:16 -08:00
Makefile ion : Merge ion changes for msm-kona kernel upgrade 2019-03-12 19:01:54 -07:00
reservation.c dma-buf: Discard old fence_excl on retrying get_fences_rcu for realloc 2019-07-28 08:29:28 +02:00
seqno-fence.c dma-buf: Rename struct fence to dma_fence 2016-10-25 14:40:39 +02:00
sw_sync.c dma-buf/sw_sync: Synchronize signal vs syncpt free 2019-10-07 18:57:04 +02:00
sync_debug.c Linux 4.13-rc2 2017-07-27 08:15:43 +10:00
sync_debug.h dma-buf: Remove unneeded stubs around sync_debug interfaces 2018-05-07 15:58:07 +02:00
sync_file.c dma_buf: use kmem_cache pool for struct sync_file 2022-11-12 11:24:40 +00:00
sync_trace.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00