mbox series

[0/4] PM / devfreq: add possibility for delayed work

Message ID 20191209144425.13321-1-k.konieczny@samsung.com (mailing list archive)
Headers show
Series PM / devfreq: add possibility for delayed work | expand

Message

Kamil Konieczny Dec. 9, 2019, 2:44 p.m. UTC
Add possibility for changing work from deferred to delayed in devfreq
workqueue. This can be done with

echo 1 > /sys/class/devfreq/devfreqX/delayed_timer

Second way is to use config option, in that case delayed timer will be
used from devfreq start.

Default behaviour is to stick with old delayed timer.

This patchset was inspired by Lukasz Luba patches and discussion that
follows, see

[v1] https://marc.info/?l=linux-pm&m=154904631226997&w=2
[v2] https://marc.info/?l=linux-pm&m=154989907416072&w=2
[v3] https://marc.info/?l=linux-pm&m=155001027823904&w=2

Kamil Konieczny (4):
  PM / devfreq: reuse system workqueue machanism
  PM / devfreq: add possibility for delayed work
  PM / devfreq: Kconfig: add DEVFREQ_DELAYED_TIMER option
  PM / devfreq: use delayed work if DEVFREQ_DELAYED_TIMER set

 Documentation/ABI/testing/sysfs-class-devfreq | 10 ++++
 drivers/devfreq/Kconfig                       | 12 ++++
 drivers/devfreq/devfreq.c                     | 55 +++++++++++++++++--
 include/linux/devfreq.h                       |  2 +
 4 files changed, 75 insertions(+), 4 deletions(-)