diff options
author | 2023-07-05 10:06:46 +0200 | |
---|---|---|
committer | 2023-10-13 10:07:17 +0200 | |
commit | 06cc4767750337ad162a0a7bcfd6f6eff6e0fe92 (patch) | |
tree | 8c9265ec5aaeeb8c79f68a5a1777b6f2a0fb8a62 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | pwm: jz4740: Put per-channel clk into driver data (diff) | |
download | wireguard-linux-06cc4767750337ad162a0a7bcfd6f6eff6e0fe92.tar.xz wireguard-linux-06cc4767750337ad162a0a7bcfd6f6eff6e0fe92.zip |
pwm: lp3943: Drop usage of pwm_[gs]et_chip_data()
Instead of distributing the driver's bookkeeping over 3 (i.e.
LP3943_NUM_PWMS + 1) separately allocated memory chunks, put all together
in struct lp3943_pwm. This reduces the number of memory allocations and
so fragmentation and maybe even the number of cache misses. Also
&lp3943_pwm->pwm_map[pwm->hwpwm] is cheaper to evaluate than
pwm_get_chip_data(pwm) as the former is just an addition in machine code
while the latter involves a function call.
Link: https://lore.kernel.org/r/20230705080650.2353391-5-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions