diff options
| author | Frank Li <Frank.Li@nxp.com> | 2026-07-13 13:03:27 -0400 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2026-07-14 17:25:02 +0530 |
| commit | 3f3fa81cd2ace2c95a0368f2c6e6d1a1d983281a (patch) | |
| tree | 0539c3a67de836b5446b12ef74a7dd7fca9049a3 /include/linux/timerqueue.h | |
| parent | 0d7a2719d85f9940b05eeed18e5f398b0b3219b1 (diff) | |
dmaengine: dw-edma: Use burst array instead of linked list
The current descriptor layout is:
struct dw_edma_desc *desc
└─ chunk list
└─ burst list
Creating a DMA descriptor requires at least three kzalloc() calls because
each burst is allocated as a linked-list node. Since the number of bursts
is already known when the descriptor is created, a linked list is not
necessary.
Allocate a burst array when creating each chunk to simplify the code and
eliminate one kzalloc() call.
Tested-by: Koichiro Den <den@valinux.co.jp>
Tested-By: Devendra Verma <devendra.verma@amd.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260713-edma_ll-v7-9-6fb7498c901e@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
