PM: QoS: Make CPU latency QoS depend on CONFIG_CPU_IDLE
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 11 Feb 2020 23:37:11 +0000 (00:37 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 14 Feb 2020 09:37:27 +0000 (10:37 +0100)
commit814d51f8889bc4afa75f647eeffd5ff0a5620e8d
tree40c7ea7b29fe0f741507792237cb5bbdc87d810e
parentb8e6e27c626e60bb5708ce8c974b58c485c32ac7
PM: QoS: Make CPU latency QoS depend on CONFIG_CPU_IDLE

Because cpuidle is the only user of the effective constraint coming
from the CPU latency QoS, add #ifdef CONFIG_CPU_IDLE around that code
to avoid building it unnecessarily.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Tested-by: Amit Kucheria <amit.kucheria@linaro.org>
include/linux/pm_qos.h
kernel/power/qos.c