Skip to content

PM / OPP: Minor cleanups

Viresh Kumar linux-pm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesIn review
  2. v14 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Some RBY from Stephen
- s/while/for/ for one of the loops
- Dropped a comment and fixed an error message
- opp-table marked as const in one of the place.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4PM / OPP: Reorganize _generic_set_opp_regulator()drivers/base/power/opp/core.c+34 -390 replies
2/4PM / OPP: Don't create copy of regulators unnecessarilydrivers/base/power/opp/core.c+3 -110 replies
3/4PM / OPP: opp-microvolt is not optional if regulators are setdrivers/base/power/opp/of.c+8 -21 reply
4/4PM / OPP: Don't create debugfs "supply-0" directory unnecessarilydrivers/base/power/opp/debugfs.c+3 -41 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchStephen Boyd
1/4R-b
2/4R-b
3/4R-b
4/4R-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] PM / OPP: Minor cleanups

Hi,

Here are few cleanup patches for the OPP core. The first two simplify the code that was written specifically due to the limitations that we had because of RCUs. We don't RCUs anymore and this can be simplified.

The last two take care of specific corner cases.

Rebased over pm/linux-next and tested on Exynos dual core board.

V1->V2:
- Some RBY from Stephen
- s/while/for/ for one of the loops
- Dropped a comment and fixed an error message
- opp-table marked as const in one of the place.

Viresh Kumar (4):
PM / OPP: Reorganize _generic_set_opp_regulator()
PM / OPP: Don't create copy of regulators unnecessarily PM / OPP: opp-microvolt is not optional if regulators are set PM / OPP: Don't create debugfs "supply-0" directory unnecessarily

 drivers/base/power/opp/core.c    | 87 +++++++++++++++++-----------------------
 drivers/base/power/opp/debugfs.c |  7 ++--
 drivers/base/power/opp/of.c      | 10 ++++-
 3 files changed, 48 insertions(+), 56 deletions(-)
Signature · 1 line
2.13.0.70.g6367777092d9