hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/include/linux/alarmtimer.h
....@@ -5,7 +5,8 @@
55 #include <linux/time.h>
66 #include <linux/hrtimer.h>
77 #include <linux/timerqueue.h>
8
-#include <linux/rtc.h>
8
+
9
+struct rtc_device;
910
1011 enum alarmtimer_type {
1112 ALARM_REALTIME,
....@@ -59,7 +60,11 @@
5960 u64 alarm_forward_now(struct alarm *alarm, ktime_t interval);
6061 ktime_t alarm_expires_remaining(const struct alarm *alarm);
6162
63
+#ifdef CONFIG_RTC_CLASS
6264 /* Provide way to access the rtc device being used by alarmtimers */
6365 struct rtc_device *alarmtimer_get_rtcdev(void);
66
+#else
67
+static inline struct rtc_device *alarmtimer_get_rtcdev(void) { return NULL; }
68
+#endif
6469
6570 #endif