From f0aafc992657d6a4128d65b375414878eaee0ea9 Mon Sep 17 00:00:00 2001 From: Mao Jinlong Date: Wed, 17 Feb 2016 15:21:49 +0800 Subject: rtc: alarm: Add power-on alarm feature Android does not support powering-up the phone through alarm. Set rtc alarm in timerfd to power-up the phone after alarm expiration. Change-Id: I781389c658fb00ba7f0ce089d706c10f202a7dc6 Signed-off-by: Mao Jinlong --- include/uapi/linux/time.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/uapi/linux') diff --git a/include/uapi/linux/time.h b/include/uapi/linux/time.h index e75e1b6ff27f..7fe799e867d4 100644 --- a/include/uapi/linux/time.h +++ b/include/uapi/linux/time.h @@ -56,6 +56,7 @@ struct itimerval { #define CLOCK_BOOTTIME_ALARM 9 #define CLOCK_SGI_CYCLE 10 /* Hardware specific */ #define CLOCK_TAI 11 +#define CLOCK_POWEROFF_ALARM 12 #define MAX_CLOCKS 16 #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC) -- cgit v1.2.3