diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-11-10 09:49:49 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-08-17 14:23:15 +0200 |
commit | d0c79cda85b62a19c9e9e71eb98bef9077eb3fd9 (patch) | |
tree | f36f6f5f5f3531f53b1ff548310cd8968a1ed2e8 /drivers/pwm/pwm-mtk-disp.c | |
parent | 009b384092bacb16be2b51343bfa402eb89ec74f (diff) |
pwm: lpc18xx-sct: Reduce number of devm memory allocations
[ Upstream commit 20d9de9c4d6642bb40c935233697723b56573cbc ]
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 <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/pwm/pwm-mtk-disp.c')
0 files changed, 0 insertions, 0 deletions