diff options
author | John Stultz <john.stultz@linaro.org> | 2012-04-20 12:31:45 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-20 14:56:36 -0700 |
commit | 57c498fa5df05e4bd410c101795368439fec7b4e (patch) | |
tree | d4630cd56319d4ff21b5086b0661758a740bb8b9 /include/linux/alarmtimer.h | |
parent | e2d8ccef0a8e8aedaf401edca6ad54663b0da24b (diff) | |
download | linux-stable-57c498fa5df05e4bd410c101795368439fec7b4e.tar.gz linux-stable-57c498fa5df05e4bd410c101795368439fec7b4e.tar.bz2 linux-stable-57c498fa5df05e4bd410c101795368439fec7b4e.zip |
alarmtimer: Provide accessor to alarmtimer rtc device
The Android alarm interface provides a settime call that sets both
the alarmtimer RTC device and CLOCK_REALTIME to the same value.
Since there may be multiple rtc devices, provide a hook to access the
one the alarmtimer infrastructure is using.
CC: Colin Cross <ccross@android.com>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Android Kernel Team <kernel-team@android.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/alarmtimer.h')
-rw-r--r-- | include/linux/alarmtimer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/alarmtimer.h b/include/linux/alarmtimer.h index 975009e1cbe6..96c5c249b086 100644 --- a/include/linux/alarmtimer.h +++ b/include/linux/alarmtimer.h @@ -76,4 +76,7 @@ static inline int alarmtimer_callback_running(struct alarm *timer) } +/* Provide way to access the rtc device being used by alarmtimers */ +struct rtc_device *alarmtimer_get_rtcdev(void); + #endif |