cpuidle/menu: add per cpu pm_qos_resume_latency consideration
Kernel or user may have special requirement on cpu response time, like
if a interrupt is pinned to a cpu, we don't want the cpu goes too deep
sleep. This patch can prevent this thing happen by consider per cpu
resume_latency setting in cpu sleep state selection in menu governor.
According to sysfs-device ABI:Documentation/ABI/testing/sysfs-devices-power
the pm_qos_resume_latency ask device to give reponse in this time. That's
similar with cpu cstates' entry_latency + exit_latency. But since
most of cpu cstate either has no entry_latency or add it into exit_latency
So, we just can restrict this time requirement as states exit_latency.
Signed-off-by: Alex Shi <alex.shi@linaro.org>
1 file changed