linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] PM / devfreq: Refactor load monitoring
@ 2019-02-14  1:30 Matthias Kaehlcke
  2019-02-14  1:30 ` [PATCH 1/4] PM / devfreq: Track overall load monitor state instead of 'stop_polling' Matthias Kaehlcke
                   ` (3 more replies)
  0 siblings, 4 replies; 24+ messages in thread
From: Matthias Kaehlcke @ 2019-02-14  1:30 UTC (permalink / raw)
  To: MyungJoo Ham, Kyungmin Park, Chanwoo Choi, Thierry Reding,
	Jonathan Hunter, linux-pm, linux-kernel, linux-tegra,
	Lukasz Luba
  Cc: Matthias Kaehlcke

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(-)

-- 
2.20.1.791.gb4d0f1c61a-goog


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2019-02-18 11:22 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-14  1:30 [PATCH 0/4] PM / devfreq: Refactor load monitoring Matthias Kaehlcke
2019-02-14  1:30 ` [PATCH 1/4] PM / devfreq: Track overall load monitor state instead of 'stop_polling' Matthias Kaehlcke
2019-02-14 14:25   ` Chanwoo Choi
2019-02-14 16:59     ` Matthias Kaehlcke
2019-02-14 23:47       ` Chanwoo Choi
2019-02-14  1:30 ` [PATCH 2/4] PM / devfreq: Handle monitor suspend/resume in the devfreq core Matthias Kaehlcke
2019-02-14 14:10   ` Chanwoo Choi
2019-02-14 17:47     ` Matthias Kaehlcke
2019-02-14  1:30 ` [PATCH 3/4] PM / devfreq: Add devfreq_governor_start/stop() Matthias Kaehlcke
2019-02-14 14:12   ` Chanwoo Choi
2019-02-14 14:32     ` Chanwoo Choi
2019-02-14 18:32       ` Matthias Kaehlcke
2019-02-14 18:30     ` Matthias Kaehlcke
2019-02-14  1:30 ` [PATCH 4/4] PM / devfreq: Handle monitor start/stop in the devfreq core Matthias Kaehlcke
2019-02-14 14:17   ` Chanwoo Choi
2019-02-14 19:28     ` Matthias Kaehlcke
2019-02-14 23:42       ` Chanwoo Choi
2019-02-15  0:19         ` Matthias Kaehlcke
2019-02-15  0:33           ` Chanwoo Choi
2019-02-15 22:56             ` Matthias Kaehlcke
2019-02-18 11:22               ` Chanwoo Choi
2019-02-14 18:01   ` Lukasz Luba
2019-02-14 19:07     ` Matthias Kaehlcke
2019-02-15 13:07       ` Lukasz Luba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).