diff options
author | 2023-07-05 10:06:47 +0200 | |
---|---|---|
committer | 2023-10-13 10:07:17 +0200 | |
commit | ec63391a0d402cafa5f4dfd11e05cd325ae7e2f5 (patch) | |
tree | 940a5a3932fb0468128f3bdba8bf7323f3ba9db5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | pwm: lp3943: Drop usage of pwm_[gs]et_chip_data() (diff) | |
download | wireguard-linux-ec63391a0d402cafa5f4dfd11e05cd325ae7e2f5.tar.xz wireguard-linux-ec63391a0d402cafa5f4dfd11e05cd325ae7e2f5.zip |
pwm: renesas: Drop usage of pwm_[gs]et_chip_data()
Instead of distributing the driver's bookkeeping over 5 (i.e.
TPU_CHANNEL_MAX + 1) separately allocated memory chunks, put all together
in struct tpu_device. This reduces the number of memory allocations and
so fragmentation and maybe even the number of cache misses. Also
&tpu->tpd[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-6-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