diff options
author | 2021-11-10 09:49:49 +0100 | |
---|---|---|
committer | 2022-02-02 17:04:23 +0100 | |
commit | 20d9de9c4d6642bb40c935233697723b56573cbc (patch) | |
tree | 0a51ef54c9dc4f8f0fd9e2eecfadac3d38f36397 /drivers/pwm/pwm-imx1.c | |
parent | pwm: lpc18xx-sct: Initialize driver data and hardware before pwmchip_add() (diff) | |
download | wireguard-linux-20d9de9c4d6642bb40c935233697723b56573cbc.tar.xz wireguard-linux-20d9de9c4d6642bb40c935233697723b56573cbc.zip |
pwm: lpc18xx-sct: Reduce number of devm memory allocations
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions