Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224023
b: refs/heads/master
c: 20f33a0
h: refs/heads/master
i:
  224021: 8ded0eb
  224019: 1a86ef9
  224015: 76bb34c
v: v3
  • Loading branch information
Namhyung Kim authored and Thomas Gleixner committed Oct 21, 2010
1 parent 3517fea commit fde0763
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: dd6414b50fa2b1cd247a8aa8f8bd42414b7453e1
refs/heads/master: 20f33a03f0cf87e51165f7084f697acfb68e865b
10 changes: 8 additions & 2 deletions trunk/kernel/posix-timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,13 @@ static int common_timer_del(struct k_itimer *timer);

static enum hrtimer_restart posix_timer_fn(struct hrtimer *data);

static struct k_itimer *lock_timer(timer_t timer_id, unsigned long *flags);
static struct k_itimer *__lock_timer(timer_t timer_id, unsigned long *flags);

#define lock_timer(tid, flags) \
({ struct k_itimer *__timr; \
__cond_lock(&__timr->it_lock, __timr = __lock_timer(tid, flags)); \
__timr; \
})

static inline void unlock_timer(struct k_itimer *timr, unsigned long flags)
{
Expand Down Expand Up @@ -619,7 +625,7 @@ SYSCALL_DEFINE3(timer_create, const clockid_t, which_clock,
* the find to the timer lock. To avoid a dead lock, the timer id MUST
* be release with out holding the timer lock.
*/
static struct k_itimer *lock_timer(timer_t timer_id, unsigned long *flags)
static struct k_itimer *__lock_timer(timer_t timer_id, unsigned long *flags)
{
struct k_itimer *timr;
/*
Expand Down

0 comments on commit fde0763

Please sign in to comment.