PM / devfreq: Add basic governors
[firefly-linux-kernel-4.4.55.git] / drivers / devfreq / Kconfig
index 1fb42de4f4205a155c07f14afcbc2998de4b448b..643b055ed3cdc619d07166e8eaa84b2f849252df 100644 (file)
@@ -34,6 +34,42 @@ menuconfig PM_DEVFREQ
 
 if PM_DEVFREQ
 
+comment "DEVFREQ Governors"
+
+config DEVFREQ_GOV_SIMPLE_ONDEMAND
+       bool "Simple Ondemand"
+       help
+         Chooses frequency based on the recent load on the device. Works
+         similar as ONDEMAND governor of CPUFREQ does. A device with
+         Simple-Ondemand should be able to provide busy/total counter
+         values that imply the usage rate. A device may provide tuned
+         values to the governor with data field at devfreq_add_device().
+
+config DEVFREQ_GOV_PERFORMANCE
+       bool "Performance"
+       help
+         Sets the frequency at the maximum available frequency.
+         This governor always returns UINT_MAX as frequency so that
+         the DEVFREQ framework returns the highest frequency available
+         at any time.
+
+config DEVFREQ_GOV_POWERSAVE
+       bool "Powersave"
+       help
+         Sets the frequency at the minimum available frequency.
+         This governor always returns 0 as frequency so that
+         the DEVFREQ framework returns the lowest frequency available
+         at any time.
+
+config DEVFREQ_GOV_USERSPACE
+       bool "Userspace"
+       help
+         Sets the frequency at the user specified one.
+         This governor returns the user configured frequency if there
+         has been an input to /sys/devices/.../power/devfreq_set_freq.
+         Otherwise, the governor does not change the frequnecy
+         given at the initialization.
+
 comment "DEVFREQ Drivers"
 
 endif # PM_DEVFREQ