alarmtimer: add support to set the maximum alarm interval time
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 23 Mar 2015 12:01:56 +0000 (17:01 +0530)
committerLaxman Dewangan <ldewangan@nvidia.com>
Wed, 25 Mar 2015 00:52:18 +0000 (17:52 -0700)
commit688a9f269cff9e331b4c8cc8c93685ea26406a23
tree6d98f0c3f0cf9805e5a102014ef3a549a77f805e
parente5c3d00abbc4b931747d7d4cbd08ff69709f2cda
alarmtimer: add support to set the maximum alarm interval time

When system enters into suspend, alarmtimer set the RTC HW for alarm.
Add API to set the maximum time for alarm such that if any client/user
space has set the wakeup for more than this time then alarmtimer will
set the alarm to this time.

This help to ensure that system will wakeup once on this time.

bug 200082198

Change-Id: Ib22ad0a01782e946750a6641579bcad9f119fd70
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/720942
include/linux/alarmtimer.h
kernel/time/alarmtimer.c