Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333869
b: refs/heads/master
c: a65bcc1
h: refs/heads/master
i:
  333867: 786c8c4
v: v3
  • Loading branch information
John Stultz committed Sep 24, 2012
1 parent 159dd5d commit 294b429
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: a269eb50bd5793e43589270c2f326f4f7519ddda
refs/heads/master: a65bcc12ad74b3efe78847945a1e36cfcbcbc4e6
8 changes: 4 additions & 4 deletions trunk/kernel/time/alarmtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@ static void alarmtimer_enqueue(struct alarm_base *base, struct alarm *alarm)
}

/**
* alarmtimer_remove - Removes an alarm timer from an alarm_base timerqueue
* alarmtimer_dequeue - Removes an alarm timer from an alarm_base timerqueue
* @base: pointer to the base where the timer is running
* @alarm: pointer to alarm being removed
*
* Removes alarm to a alarm_base timerqueue
*
* Must hold base->lock when calling.
*/
static void alarmtimer_remove(struct alarm_base *base, struct alarm *alarm)
static void alarmtimer_dequeue(struct alarm_base *base, struct alarm *alarm)
{
if (!(alarm->state & ALARMTIMER_STATE_ENQUEUED))
return;
Expand Down Expand Up @@ -181,7 +181,7 @@ static enum hrtimer_restart alarmtimer_fired(struct hrtimer *timer)
int restart = ALARMTIMER_NORESTART;

spin_lock_irqsave(&base->lock, flags);
alarmtimer_remove(base, alarm);
alarmtimer_dequeue(base, alarm);
spin_unlock_irqrestore(&base->lock, flags);

if (alarm->function)
Expand Down Expand Up @@ -340,7 +340,7 @@ int alarm_try_to_cancel(struct alarm *alarm)
spin_lock_irqsave(&base->lock, flags);
ret = hrtimer_try_to_cancel(&alarm->timer);
if (ret >= 0)
alarmtimer_remove(base, alarm);
alarmtimer_dequeue(base, alarm);
spin_unlock_irqrestore(&base->lock, flags);
return ret;
}
Expand Down

0 comments on commit 294b429

Please sign in to comment.