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)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 14 Dec 2023 06:28:45 +0000 (11:58 +0530)
commit62210a26cd4f8ad52683a71c0226dfe85de1144d
tree90a1ccbfe35a9f8d31dab080560217bc66e05293
parenteff9704f5332a13b08fbdbe0f84059c9e7051d5f
bus: mhi: ep: Use slab allocator where applicable

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>
drivers/bus/mhi/ep/main.c
include/linux/mhi_ep.h