Skip to content

OPP: Make ceil/floor/exact helpers share code

Viresh Kumar linux-pm lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v15 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Don't cast unsigned int * to unsigned long *.
- Rearrange into 4 patches instead of 5.
- Move back to 80 column width.
- New tags.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4OPP: Remove dev_pm_opp_find_freq_ceil_by_volt()drivers/opp/core.c include/linux/pm_opp.h+0 -620 replies
2/4OPP: Add generic key finding helpers and use them for freq APIsdrivers/opp/core.c+130 -990 replies
3/4OPP: Use generic key finding helpers for level keydrivers/opp/core.c+10 -530 replies
4/4OPP: Use generic key finding helpers for bandwidth keydrivers/opp/core.c+15 -680 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

PatchDmitry Osipenko
1/4T-b
2/4T-b
3/4T-b
4/4T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH V2 0/4] OPP: Make ceil/floor/exact helpers share code

Hello,

All helpers of type ceil/floor/exact do pretty much the same thing. Rewrite them in order to reduce code redundancy.

Tested the freq based routines on Hikey platform, works as expected.

This is rebased over other recent OPP changes and is pushed here:

git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git opp/linux-next

V1->V2:
- Don't cast unsigned int * to unsigned long *.
- Rearrange into 4 patches instead of 5.
- Move back to 80 column width.
- New tags.

--
Viresh

Viresh Kumar (4):
OPP: Remove dev_pm_opp_find_freq_ceil_by_volt()
OPP: Add generic key finding helpers and use them for freq APIs
OPP: Use generic key finding helpers for level key
OPP: Use generic key finding helpers for bandwidth key

 drivers/opp/core.c     | 429 +++++++++++++++--------------------------
 include/linux/pm_opp.h |   8 -
 2 files changed, 155 insertions(+), 282 deletions(-)
Signature · 1 line
2.31.1.272.g89b43f80a514