drivers: cpuidle: lpm-levels: Reset suspend wake time

During suspend alarm timer sends next wakeup time to
be programmed. Currently next wakeup time is not reset
upon wakeup. This causes unintended wakeups if there is
no alarm set during next suspend.

Reset suspend wake time during exit from suspend.

Change-Id: Ia0e5d08a4e5cdc71f6c2d884363b830de5ef88d5
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
This commit is contained in:
Maulik Shah 2017-12-08 12:34:25 +05:30 committed by Timi
parent fbd35805c8
commit ccb2777821

View file

@ -1340,6 +1340,9 @@ static void cluster_unprepare(struct lpm_cluster *cluster,
lpm_wa_cx_unvote_send();
msm_mpm_exit_sleep(from_idle);
if (!from_idle)
suspend_wake_time = 0;
}
update_debug_pc_event(CLUSTER_EXIT, cluster->last_level,