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

From: Kamil Konieczny
Date: Mon Dec 09 2019 - 09:44:45 EST


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

--
2.24.0