diff options
| author | John Stultz <[email protected]> | 2012-04-20 12:31:45 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2012-04-20 14:56:36 -0700 |
| commit | 57c498fa5df05e4bd410c101795368439fec7b4e (patch) | |
| tree | d4630cd56319d4ff21b5086b0661758a740bb8b9 /include/linux | |
| parent | e2d8ccef0a8e8aedaf401edca6ad54663b0da24b (diff) | |
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 <[email protected]>
CC: Thomas Gleixner <[email protected]>
CC: Android Kernel Team <[email protected]>
Signed-off-by: John Stultz <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux')
| -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 |