Skip to content

PM: runtime: Consolidation of last_busy updates and calling rpm_idle() in rpm_resume()

Rafael J. Wysocki driver-core linux-pm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 3 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2PM: runtime: Drop redundant last_busy update from rpm_resume()drivers/base/power/runtime.c+0 -11 reply
2/2PM: runtime: Call rpm_idle() in rpm_resume() for active devicesdrivers/base/power/runtime.c+8 -102 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchUlf Hansson
1/2R-b
2/2

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/2] PM: runtime: Consolidation of last_busy updates and calling rpm_idle() in rpm_resume()

Hi All,

This is a follow-up series for

https://web.git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?h=linux-next&id=26236a3e8803f7e1ace104020d7f006edb220116

which is in linux-next and it replaces

https://lore.kernel.org/linux-pm/[email protected]/

and

https://lore.kernel.org/linux-pm/[email protected]/

(hence v2).

It makes essentially the same changes as the two patches above, but in a different order and with somewhat (hopefully) more convincing explanation. It requires this series to be applied:

https://lore.kernel.org/linux-pm/[email protected]/

The first patch simply drops a direct pm_runtime_mark_last_busy() call from rpm_resume() that becomes redundant after apply the above series.

The second patch causes rpm_resume() to call rpm_idle() in the case when the given device is active to start with which is already done in the case when the device needs to be resumed. The goal is to make the behavior of rpm_resume() more consistent and more predictable.

Thanks!