.. | .. |
---|
5 | 5 | #include <linux/time.h> |
---|
6 | 6 | #include <linux/hrtimer.h> |
---|
7 | 7 | #include <linux/timerqueue.h> |
---|
8 | | -#include <linux/rtc.h> |
---|
| 8 | + |
---|
| 9 | +struct rtc_device; |
---|
9 | 10 | |
---|
10 | 11 | enum alarmtimer_type { |
---|
11 | 12 | ALARM_REALTIME, |
---|
.. | .. |
---|
59 | 60 | u64 alarm_forward_now(struct alarm *alarm, ktime_t interval); |
---|
60 | 61 | ktime_t alarm_expires_remaining(const struct alarm *alarm); |
---|
61 | 62 | |
---|
| 63 | +#ifdef CONFIG_RTC_CLASS |
---|
62 | 64 | /* Provide way to access the rtc device being used by alarmtimers */ |
---|
63 | 65 | struct rtc_device *alarmtimer_get_rtcdev(void); |
---|
| 66 | +#else |
---|
| 67 | +static inline struct rtc_device *alarmtimer_get_rtcdev(void) { return NULL; } |
---|
| 68 | +#endif |
---|
64 | 69 | |
---|
65 | 70 | #endif |
---|