Skip to content

Commit a269eb5

Browse files
alarmtimer: Remove unused helpers & defines
No one is using these alarmtimer state helpers, so yank them. Cc: Arve Hjønnevåg <arve@android.com> Cc: Colin Cross <ccross@android.com> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: John Stultz <john.stultz@linaro.org>
1 parent dae373b commit a269eb5

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

‎include/linux/alarmtimer.h‎

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ enum alarmtimer_restart {
2121

2222
#define ALARMTIMER_STATE_INACTIVE 0x00
2323
#define ALARMTIMER_STATE_ENQUEUED 0x01
24-
#define ALARMTIMER_STATE_CALLBACK 0x02
2524

2625
/**
2726
* struct alarm - Alarm timer structure
@@ -50,33 +49,6 @@ int alarm_cancel(struct alarm *alarm);
5049

5150
u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval);
5251

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-
8052
/* Provide way to access the rtc device being used by alarmtimers */
8153
struct rtc_device *alarmtimer_get_rtcdev(void);
8254

0 commit comments

Comments
 (0)