diff options
author | Simon Shields <keepcalm444@gmail.com> | 2016-02-19 22:37:57 +1100 |
---|---|---|
committer | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2016-03-18 01:51:05 +0100 |
commit | e1cdf797f3e137ff4481d8cc42790de80a36d300 (patch) | |
tree | f8db15382597b0ee95d88b3ad8c950431392a6a7 /drivers/cpufreq/Kconfig | |
parent | 767acb8c1b427e5cc361a47e5580c0bdcb8defa9 (diff) | |
download | kernel_samsung_smdk4412-e1cdf797f3e137ff4481d8cc42790de80a36d300.zip kernel_samsung_smdk4412-e1cdf797f3e137ff4481d8cc42790de80a36d300.tar.gz kernel_samsung_smdk4412-e1cdf797f3e137ff4481d8cc42790de80a36d300.tar.bz2 |
cpufreq: pegasusq: add support for setting a boost freq/cpulock
Currently, the pegasusq cpufreq driver has no way of allowing a
userspace component (such as a powerhal) to indicate that the cpu
should be brought to a higher clockspeed in anticipation of user input
(such as on POWER_HINT_INTERACTION).
This commit adds three interfaces to pegasusq, boost_freq and
boost_mincpus, and boost_lock_time. boost_freq sets the minimum
frequency for the cpus held online, and boost_mincpus specifies the
minimum number of cpus to hold online. boost_lock_time is measured
in nanoseconds, and is the amount of time to wait before restoring
normal control. boost_mincpus and boost_freq will not have an
effect until boost_lock_time != 0.
Reading from boost_lock_time will return 1 if there is currently a
boost, and 0 if there is not a boost. Writing 0 will cancel any current
boost, and writing a non-zero number will cancel any current boost and
begin boosting for that amount of time. Writing -1 will indefinitely
boost until another value is written.
This feature is hidden behind the CPU_FREQ_GOV_PEGASUSQ_BOOST Kconfig
flag.
Change-Id: I6e81dd3ec3af5d1408b99e136e5a63789b79dfbe
Diffstat (limited to 'drivers/cpufreq/Kconfig')
-rw-r--r-- | drivers/cpufreq/Kconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index 8112af3..578f807 100644 --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig @@ -266,6 +266,11 @@ config CPU_FREQ_GOV_ADAPTIVE config CPU_FREQ_GOV_PEGASUSQ tristate "'pegasusq' cpufreq policy governor" +config CPU_FREQ_GOV_PEGASUSQ_BOOST + bool "pegasusq - enable suport for userspace-controlled cpu boosts" + depends on CPU_FREQ_GOV_PEGASUSQ + default n + config CPU_FREQ_GOV_SLP tristate "'slp' cpufreq policy governor" |