cpuidle/menu: add per CPU PM QoS resume latency consideration
authorAlex Shi <alex.shi@linaro.org>
Thu, 12 Jan 2017 13:27:04 +0000 (21:27 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 Jan 2017 10:03:32 +0000 (11:03 +0100)
commit9908859acaa95640d4a07991a93f7cd5bfc18e02
tree4606265c8d2ea8ab3cea9c09c2f44aaf3604515c
parent8e37e1a2a3295f5d99e6dbe99eca24eca7a034ef
cpuidle/menu: add per CPU PM QoS resume latency consideration

There may be special requirements on CPU response time, like if a
interrupt is pinned to a CPU, that CPU should not go into excessively
deep idle states.  For this reason, add a mechanism for adding
PM QoS resume latency constraints for individual CPUs and modify the
menu governor to take them into account.

To that end, extend the device PM QoS pm_qos_resume_latency attribute
to CPUs, which is possible, because the exit latency for CPUs is
effectively equivalent to the resume latency for devices.

Signed-off-by: Alex Shi <alex.shi@linaro.org>
Acked-by: Rik van Riel <riel@redhat.com>
[ rjw : Subject & changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/governors/menu.c