PM / devfreq: Refactor load monitoring
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 19 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | PM / devfreq: Track overall load monitor state instead of 'stop_polling'drivers/ include/ | +27 | 3 replies | |
| 2/4 | PM / devfreq: Handle monitor suspend/resume in the devfreq coredrivers/ drivers/ drivers/ +1 more | +8 | 2 replies | |
| 3/4 | PM / devfreq: Add devfreq_governor_start/stop()drivers/ | +58 | 4 replies | |
| 4/4 | PM / devfreq: Handle monitor start/stop in the devfreq coredrivers/ drivers/ drivers/ +1 more | +22 | 10 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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