PM / devfreq: Add new interrupt_driven flag for governors
authorDmitry Osipenko <digetx@gmail.com>
Mon, 4 Nov 2019 21:56:14 +0000 (00:56 +0300)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 6 Nov 2019 03:04:01 +0000 (12:04 +0900)
commit5c0f6c79595760c9e366c3517314051af530e3e6
tree47f8943363f826ff6882136883d0aa13aafe2cef
parent28615e37be96877e5bb3559f566e50a291cf7a05
PM / devfreq: Add new interrupt_driven flag for governors

Currently interrupt-driven governors (like NVIDIA Tegra30 ACTMON governor)
are used to set polling_ms=0 in order to avoid periodic polling of device
status by devfreq core. This means that polling interval can't be changed
by userspace for such governors.

The new governor flag allows interrupt-driven governors to convey that
devfreq core shouldn't perform polling of device status and thus generic
devfreq polling interval could be supported by these governors now.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/devfreq.c
drivers/devfreq/governor.h