From: tuukka.tikkanen@linaro.org Date: Mon, 24 Feb 2014 06:29:37 +0000 (+0200) Subject: cpuidle: poll state can measure residency X-Git-Tag: firefly_0821_release~176^2~4176^2~7^2~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4b2f0b033a294e6c19d57c5d0a66c000f6299559;p=firefly-linux-kernel-4.4.55.git cpuidle: poll state can measure residency For some platforms, a poll state is inserted in the cpuidle driver states. The flags for the state do not indicate that timekeeping is not affected. As the state does not do anything apart from calling cpu_relax(), the times returned by ktime_get should remain valid. Add the missing flag. Signed-off-by: Tuukka Tikkanen Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpuidle/driver.c b/drivers/cpuidle/driver.c index 06dbe7c86199..136d6a283e0a 100644 --- a/drivers/cpuidle/driver.c +++ b/drivers/cpuidle/driver.c @@ -209,7 +209,7 @@ static void poll_idle_init(struct cpuidle_driver *drv) state->exit_latency = 0; state->target_residency = 0; state->power_usage = -1; - state->flags = 0; + state->flags = CPUIDLE_FLAG_TIME_VALID; state->enter = poll_idle; state->disabled = false; }