Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333868
b: refs/heads/master
c: a269eb5
h: refs/heads/master
v: v3
  • Loading branch information
John Stultz committed Sep 24, 2012
1 parent 786c8c4 commit 159dd5d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dae373be9fec6f850159a05af3a1c36236a70d43
refs/heads/master: a269eb50bd5793e43589270c2f326f4f7519ddda
28 changes: 0 additions & 28 deletions trunk/include/linux/alarmtimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ enum alarmtimer_restart {

#define ALARMTIMER_STATE_INACTIVE 0x00
#define ALARMTIMER_STATE_ENQUEUED 0x01
#define ALARMTIMER_STATE_CALLBACK 0x02

/**
* struct alarm - Alarm timer structure
Expand Down Expand Up @@ -50,33 +49,6 @@ int alarm_cancel(struct alarm *alarm);

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

/*
* A alarmtimer is active, when it is enqueued into timerqueue or the
* callback function is running.
*/
static inline int alarmtimer_active(const struct alarm *timer)
{
return timer->state != ALARMTIMER_STATE_INACTIVE;
}

/*
* Helper function to check, whether the timer is on one of the queues
*/
static inline int alarmtimer_is_queued(struct alarm *timer)
{
return timer->state & ALARMTIMER_STATE_ENQUEUED;
}

/*
* Helper function to check, whether the timer is running the callback
* function
*/
static inline int alarmtimer_callback_running(struct alarm *timer)
{
return timer->state & ALARMTIMER_STATE_CALLBACK;
}


/* Provide way to access the rtc device being used by alarmtimers */
struct rtc_device *alarmtimer_get_rtcdev(void);

Expand Down

0 comments on commit 159dd5d

Please sign in to comment.