Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pwm: lpc18xx-sct: Reduce number of devm memory allocations
[ Upstream commit 20d9de9 ] Each devm allocations has an overhead of 24 bytes to store the related struct devres_node additionally to the fragmentation of the allocator. So allocating 16 struct lpc18xx_pwm_data (which only hold a single int) adds quite some overhead. Instead put the per-channel data into the driver data struct and allocate it in one go. Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information