aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/Kconfig
diff options
context:
space:
mode:
authorSimon Shields <keepcalm444@gmail.com>2016-02-19 22:37:57 +1100
committerSimon Shields <keepcalm444@gmail.com>2016-02-27 18:08:33 +1100
commit873c3ec472cea798469b2bed2df4730f62d07022 (patch)
treee0b7215b0ffc003fccebbcae8b0ebacd6010a1c0 /drivers/cpufreq/Kconfig
parent63489bea04df98a191f4a528ceb646fbbffa36c4 (diff)
downloadkernel_samsung_smdk4412-873c3ec472cea798469b2bed2df4730f62d07022.tar.gz
kernel_samsung_smdk4412-873c3ec472cea798469b2bed2df4730f62d07022.tar.bz2
kernel_samsung_smdk4412-873c3ec472cea798469b2bed2df4730f62d07022.zip
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/Kconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig
index 8112af3a059..578f807b093 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"