diff options
| -rw-r--r-- | include/linux/alarmtimer.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/include/linux/alarmtimer.h b/include/linux/alarmtimer.h index f122c9fbf8c7..9069694e70eb 100644 --- a/include/linux/alarmtimer.h +++ b/include/linux/alarmtimer.h | |||
| @@ -21,7 +21,6 @@ enum alarmtimer_restart { | |||
| 21 | 21 | ||
| 22 | #define ALARMTIMER_STATE_INACTIVE 0x00 | 22 | #define ALARMTIMER_STATE_INACTIVE 0x00 |
| 23 | #define ALARMTIMER_STATE_ENQUEUED 0x01 | 23 | #define ALARMTIMER_STATE_ENQUEUED 0x01 |
| 24 | #define ALARMTIMER_STATE_CALLBACK 0x02 | ||
| 25 | 24 | ||
| 26 | /** | 25 | /** |
| 27 | * struct alarm - Alarm timer structure | 26 | * struct alarm - Alarm timer structure |
| @@ -50,33 +49,6 @@ int alarm_cancel(struct alarm *alarm); | |||
| 50 | 49 | ||
| 51 | u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval); | 50 | u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval); |
| 52 | 51 | ||
| 53 | /* | ||
| 54 | * A alarmtimer is active, when it is enqueued into timerqueue or the | ||
| 55 | * callback function is running. | ||
| 56 | */ | ||
| 57 | static inline int alarmtimer_active(const struct alarm *timer) | ||
| 58 | { | ||
| 59 | return timer->state != ALARMTIMER_STATE_INACTIVE; | ||
| 60 | } | ||
| 61 | |||
| 62 | /* | ||
| 63 | * Helper function to check, whether the timer is on one of the queues | ||
| 64 | */ | ||
| 65 | static inline int alarmtimer_is_queued(struct alarm *timer) | ||
| 66 | { | ||
| 67 | return timer->state & ALARMTIMER_STATE_ENQUEUED; | ||
| 68 | } | ||
| 69 | |||
| 70 | /* | ||
| 71 | * Helper function to check, whether the timer is running the callback | ||
| 72 | * function | ||
| 73 | */ | ||
| 74 | static inline int alarmtimer_callback_running(struct alarm *timer) | ||
| 75 | { | ||
| 76 | return timer->state & ALARMTIMER_STATE_CALLBACK; | ||
| 77 | } | ||
| 78 | |||
| 79 | |||
| 80 | /* Provide way to access the rtc device being used by alarmtimers */ | 52 | /* Provide way to access the rtc device being used by alarmtimers */ |
| 81 | struct rtc_device *alarmtimer_get_rtcdev(void); | 53 | struct rtc_device *alarmtimer_get_rtcdev(void); |
| 82 | 54 | ||
