forked from rubenslte/android_kernel_samsung_msm8226
rtc: alarm: set power_on_alarm again when calling alarm_resume
The power_on alarm might be replaced or cleared during alarm suspend and resume process.So restore the power_on alarm into RTC during alarm resume. Change-Id: I1eefb082f9dfbd78517f3da1cc60a989853555fd Signed-off-by: Mao Jinlong <c_jmao@codeaurora.org>
This commit is contained in:
@@ -523,6 +523,7 @@ static int alarm_resume(struct platform_device *pdev)
|
||||
false);
|
||||
spin_unlock_irqrestore(&alarm_slock, flags);
|
||||
|
||||
set_alarm_time_to_rtc(power_on_alarm);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user