diff options
author | Konrad Dybcio <konrad.dybcio@linaro.org> | 2024-01-09 11:04:49 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-01-22 00:06:46 +0000 |
commit | 5df3b41bd6b5432010d6d85e5aa7217bd8f6b0cb (patch) | |
tree | 925e16d05c84d7294d829318716b6e5bcf2a472a /net/unix/garbage.c | |
parent | 6613476e225e090cc9aad49be7fa504e290dd33d (diff) |
regulator: qcom_smd: Keep one rpm handle for all vregs
For no apparent reason (as there's just one RPM per SoC), all vregs
currently store a copy of a pointer to smd_rpm. Introduce a single,
global one to save up on space in each definition.
bloat-o-meter reports a slight uptick:
Total: Before=44008, After=44080, chg +0.16%
However the saved n * sizeof(ptr) for every dynamically allocated
regulator quickly makes up for it.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://msgid.link/r/20240109-rpm_vreg_cleanup-v3-1-fa0201029f78@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions