bus: mhi: ep: Use slab allocator where applicable
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Wed, 18 Oct 2023 12:28:12 +0000 (17:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 23:35:53 +0000 (15:35 -0800)
commitbd4f6f1f8948bda35cdb119689b2021cf610591b
tree58ceb4c4cf0c2d395f2746b374d591043c129b0a
parent23bab2b8e099f564eb14485514041e3327a5404f
bus: mhi: ep: Use slab allocator where applicable

[ Upstream commit 62210a26cd4f8ad52683a71c0226dfe85de1144d ]

Use slab allocator for allocating the memory for objects used frequently
and are of fixed size. This reduces the overheard associated with
kmalloc().

Suggested-by: Alex Elder <elder@linaro.org>
Link: https://lore.kernel.org/r/20231018122812.47261-1-manivannan.sadhasivam@linaro.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Stable-dep-of: 327ec5f70609 ("PCI: epf-mhi: Fix the DMA data direction of dma_unmap_single()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bus/mhi/ep/main.c
include/linux/mhi_ep.h