Skip to content

OPP: Scope based cleanup helpers and lock guards

Viresh Kumar linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6OPP: Remove _get_opp_table_kref()drivers/opp/core.c drivers/opp/of.c drivers/opp/opp.h+5 -110 replies
2/6OPP: Return opp from dev_pm_opp_get()drivers/opp/core.c include/linux/pm_opp.h+11 -90 replies
3/6OPP: Return opp_table from dev_pm_opp_get_opp_table_ref()drivers/opp/core.c drivers/opp/of.c include/linux/pm_opp.h+12 -130 replies
4/6OPP: Use scope-based OF cleanup helpersdrivers/opp/of.c+40 -710 replies
5/6OPP: Define and use scope-based cleanup helpersdrivers/opp/core.c drivers/opp/cpu.c drivers/opp/of.c +1 more+102 -1920 replies
6/6OPP: Use mutex locking guardsdrivers/opp/core.c drivers/opp/cpu.c drivers/opp/of.c+105 -1641 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] OPP: Scope based cleanup helpers and lock guards

Hello,

This series performs various cleanups / optimizations for the OPP core.
- Introduce and use scope based cleanup headers
- Use mutex locking guards

No intentional functional impact.

--
Viresh

Viresh Kumar (6):
OPP: Remove _get_opp_table_kref()
OPP: Return opp from dev_pm_opp_get()
OPP: Return opp_table from dev_pm_opp_get_opp_table_ref()
OPP: Use scope-based OF cleanup helpers
OPP: Define and use scope-based cleanup helpers
OPP: Use mutex locking guards

 drivers/opp/core.c     | 426 ++++++++++++++---------------------------
 drivers/opp/cpu.c      |  30 +--
 drivers/opp/of.c       | 205 +++++++-------------
 drivers/opp/opp.h      |   1 -
 include/linux/pm_opp.h |  21 +-
 5 files changed, 249 insertions(+), 434 deletions(-)
Signature · 1 line
2.31.1.272.g89b43f80a514