Skip to content

PM / devfreq: Refactor load monitoring

Matthias Kaehlcke linux-pm linux-tegra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4PM / devfreq: Track overall load monitor state instead of 'stop_polling'drivers/devfreq/devfreq.c include/linux/devfreq.h+27 -113 replies
2/4PM / devfreq: Handle monitor suspend/resume in the devfreq coredrivers/devfreq/devfreq.c drivers/devfreq/governor.h drivers/devfreq/governor_simpleondemand.c +1 more+8 -222 replies
3/4PM / devfreq: Add devfreq_governor_start/stop()drivers/devfreq/devfreq.c+58 -384 replies
4/4PM / devfreq: Handle monitor start/stop in the devfreq coredrivers/devfreq/devfreq.c drivers/devfreq/governor.h drivers/devfreq/governor_simpleondemand.c +1 more+22 -3510 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] PM / devfreq: Refactor load monitoring

The devfreq core currently expects governors to call specific load monitor functions on certain DEVFREQ_GOV_ events. Since the devfreq core itself invokes the event handler it can as well call the corresponding load monitor functions itself. This series refactors the code to do this for DEVFREQ_GOV_START/STOP/SUSPEND and RESUME.

In the process it also moves some repeated code involved in starting and stopping the governor into helper functions.

Unfortunately I could only do limited testing of this series with a 4.19 kernel and few rather inactive devfreq devices. In this sense additional testing would be appreciated.

Thanks

Matthias

Matthias Kaehlcke (4):
PM / devfreq: Track overall load monitor state instead of
'stop_polling'
PM / devfreq: Handle monitor suspend/resume in the devfreq core PM / devfreq: Add devfreq_governor_start/stop()
PM / devfreq: Handle monitor start/stop in the devfreq core

 drivers/devfreq/devfreq.c                 | 185 +++++++++++++---------
 drivers/devfreq/governor.h                |   4 -
 drivers/devfreq/governor_simpleondemand.c |  16 --
 drivers/devfreq/tegra-devfreq.c           |   4 -
 include/linux/devfreq.h                   |   4 +-
 5 files changed, 111 insertions(+), 102 deletions(-)
Signature · 1 line
2.20.1.791.gb4d0f1c61a-goog