Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288744
b: refs/heads/master
c: 9388dc3
h: refs/heads/master
v: v3
  • Loading branch information
Anton Vorontsov authored and Ingo Molnar committed Feb 11, 2012
1 parent 7996595 commit a088ff5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 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: ed387b781ea6e14b78f449aa2ee4f270b60b01ac
refs/heads/master: 9388dc3047a88bedfd867e9ba3e1980c815ac524
15 changes: 9 additions & 6 deletions trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -2393,12 +2393,15 @@ static inline void task_unlock(struct task_struct *p)
extern struct sighand_struct *__lock_task_sighand(struct task_struct *tsk,
unsigned long *flags);

#define lock_task_sighand(tsk, flags) \
({ struct sighand_struct *__ss; \
__cond_lock(&(tsk)->sighand->siglock, \
(__ss = __lock_task_sighand(tsk, flags))); \
__ss; \
}) \
static inline struct sighand_struct *lock_task_sighand(struct task_struct *tsk,
unsigned long *flags)
{
struct sighand_struct *ret;

ret = __lock_task_sighand(tsk, flags);
(void)__cond_lock(&tsk->sighand->siglock, ret);
return ret;
}

static inline void unlock_task_sighand(struct task_struct *tsk,
unsigned long *flags)
Expand Down

0 comments on commit a088ff5

Please sign in to comment.