[PATCH v3 3/7] Kconfig: drivers: devfreq: add default idle polling

From: Lukasz Luba
Date: Tue Feb 12 2019 - 17:25:06 EST


This patch adds default idle polling value for devfreq devices.
It is used in idle state, when the device is running at lowest frequency.

Signed-off-by: Lukasz Luba <l.luba@xxxxxxxxxxxxxxxxxxx>
---
drivers/devfreq/Kconfig | 13 +++++++++++++
1 file changed, 13 insertions(+)

diff --git a/drivers/devfreq/Kconfig b/drivers/devfreq/Kconfig
index 6a172d3..f0fcc5e 100644
--- a/drivers/devfreq/Kconfig
+++ b/drivers/devfreq/Kconfig
@@ -29,6 +29,19 @@ menuconfig PM_DEVFREQ

if PM_DEVFREQ

+config DEVFREQ_DEFAULT_POLLING_IDLE_MS
+ int "Default polling interval in idle state (ms)"
+ default 500
+ help
+ The devfreq device is being polled by the devfreq framework.
+ There are two states for the device operation: normal and idle.
+ Each state has corresponding polling interval.
+ When a device is not heavily loaded and runs at lowest frequency,
+ it is in 'idle' state and longer polling interval is used.
+ This setting controls the idle polling interval.
+ It is designed to lower for power consumption.
+ Set this to non-zero if the default value is to big for your system.
+
comment "DEVFREQ Governors"

config DEVFREQ_GOV_SIMPLE_ONDEMAND
--
2.7.4