Skip to content

PM / devfreq: allow governors to be modules and switch dynamically

Nishanth Menon linux-pm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7PM / devfreq: export update_devfreqdrivers/devfreq/devfreq.c+1 -00 replies
2/7PM / devfreq: provide hooks for governors to be registereddrivers/devfreq/devfreq.c drivers/devfreq/governor.h include/linux/devfreq.h+98 -00 replies
3/7PM / devfreq: register governors with devfreq frameworkdrivers/devfreq/governor_performance.c drivers/devfreq/governor_powersave.c drivers/devfreq/governor_simpleondemand.c +1 more+72 -00 replies
4/7PM / devfreq: map devfreq drivers to governor using namedrivers/devfreq/devfreq.c drivers/devfreq/exynos4_bus.c drivers/devfreq/governor_performance.c +4 more+96 -300 replies
5/7PM / devfreq: governors: add GPL module license and allow module builddrivers/devfreq/Kconfig drivers/devfreq/governor_performance.c drivers/devfreq/governor_powersave.c +2 more+12 -40 replies
6/7PM / devfreq: allow sysfs governor node to switch governorDocumentation/ABI/testing/sysfs-class-devfreq drivers/devfreq/devfreq.c+40 -20 replies
7/7PM / devfreq: Add sysfs node to expose available governorsDocumentation/ABI/testing/sysfs-class-devfreq drivers/devfreq/devfreq.c+29 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [linux-next PATCH 0/7] PM / devfreq: allow governors to be modules and switch dynamically

The following series is based on:
linux-next e083feb Merge branch 'acpi-next' into linux-next
from git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
In addition, this series depends on the following to apply cleanly:
https://patchwork.kernel.org/patch/1649621/
https://patchwork.kernel.org/patch/1663331/

This series allows the devfreq governors to be built as modules and switched on the fly using sysfs controls (inspired by cpufreq's ability to do the same).

Tested on BeagleBoard XM(3730) with dummy driver[1]:

/sys/devices/platform/iva.0/devfreq/iva.0 # ls

available_frequencies  governor               power
available_governors    max_freq               subsystem
cur_freq               min_freq               target_freq
device                 polling_interval       uevent

/sys/devices/platform/iva.0/devfreq/iva.0 # cat available_governors simple_ondemand
/sys/devices/platform/iva.0/devfreq/iva.0 # modprobe governor_userspace /sys/devices/platform/iva.0/devfreq/iva.0 # cat available_governors userspace simple_ondemand /sys/devices/platform/iva.0/devfreq/iva.0 # /sys/devices/platform/iva.0/devfreq/iva.0 # echo -n "userspace">governor /sys/devices/platform/iva.0/devfreq/iva.0 # ls

available_frequencies  max_freq               target_freq
available_governors    min_freq               uevent
cur_freq               polling_interval       userspace
device                 power
governor               subsystem

/sys/devices/platform/iva.0/devfreq/iva.0 # cat governor userspace
/sys/devices/platform/iva.0/devfreq/iva.0 # echo -n "simple_ondemand">governor /sys/devices/platform/iva.0/devfreq/iva.0 # cat governor simple_ondemand
/sys/devices/platform/iva.0/devfreq/iva.0 # ls

available_frequencies  governor               power
available_governors    max_freq               subsystem
cur_freq               min_freq               target_freq
device                 polling_interval       uevent

Nishanth Menon (7):
PM / devfreq: export update_devfreq
PM / devfreq: provide hooks for governors to be registered PM / devfreq: register governors with devfreq framework PM / devfreq: map devfreq drivers to governor using name PM / devfreq: governors: add GPL module license and allow module
build
PM / devfreq: allow sysfs governor node to switch governor PM / devfreq: Add sysfs node to expose available governors

 Documentation/ABI/testing/sysfs-class-devfreq |    9 +-
 drivers/devfreq/Kconfig                       |    8 +-
 drivers/devfreq/devfreq.c                     |  249 ++++++++++++++++++++++++-
 drivers/devfreq/exynos4_bus.c                 |    2 +-
 drivers/devfreq/governor.h                    |    4 +
 drivers/devfreq/governor_performance.c        |   22 ++-
 drivers/devfreq/governor_powersave.c          |   22 ++-
 drivers/devfreq/governor_simpleondemand.c     |   22 ++-
 drivers/devfreq/governor_userspace.c          |   22 ++-
 include/linux/devfreq.h                       |   24 +--
 10 files changed, 348 insertions(+), 36 deletions(-)
Cc Rajagopal Venkat <[email protected]>
Cc MyungJoo Ham <[email protected]>
Cc Kyungmin Park <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Kevin Hilman <[email protected]>

[1] http://pastebin.pandaboard.org/index.php/view/85100576

Regards,
Nishanth Menon

Signature · 1 line
1.7.9.5