forked from rubenslte/android_kernel_samsung_msm8226
kernel: alarm: setup the RTC immediately for poweroff alarm
Currently we setup the RTC for poweroff alarm when the system performs shutdown. But if the phone is shut down unexpectedly before that, the poweroff alarm can't work. So we can do that immediately. CR-fixed: 532743 Change-Id: Ib26a56fba8cd64efe94f2f07ee232482228429dc Signed-off-by: Figo Wang <figow@codeaurora.org>
This commit is contained in:
@@ -71,9 +71,11 @@ struct alarm_queue alarms[ANDROID_ALARM_TYPE_COUNT];
|
||||
static bool suspended;
|
||||
static long power_on_alarm;
|
||||
|
||||
static void alarm_shutdown(struct platform_device *dev);
|
||||
void set_power_on_alarm(long secs)
|
||||
{
|
||||
power_on_alarm = secs;
|
||||
alarm_shutdown(NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user