diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-11-10 11:49:49 +0300 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2022-02-02 19:04:23 +0300 |
commit | 20d9de9c4d6642bb40c935233697723b56573cbc (patch) | |
tree | 0a51ef54c9dc4f8f0fd9e2eecfadac3d38f36397 /scripts/generate_rust_analyzer.py | |
parent | 0401f24cd238ae200a23a13925f98de3d2c883b8 (diff) | |
download | linux-20d9de9c4d6642bb40c935233697723b56573cbc.tar.xz |
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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions