diff options
Diffstat (limited to 'include/linux/sched.h')
| -rw-r--r-- | include/linux/sched.h | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index bbcfc873bd98..ca1fd31aae97 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h  | |||
| @@ -1225,6 +1225,15 @@ static inline void task_unlock(struct task_struct *p) | |||
| 1225 | spin_unlock(&p->alloc_lock); | 1225 | spin_unlock(&p->alloc_lock); | 
| 1226 | } | 1226 | } | 
| 1227 | 1227 | ||
| 1228 | extern struct sighand_struct *lock_task_sighand(struct task_struct *tsk, | ||
| 1229 | unsigned long *flags); | ||
| 1230 | |||
| 1231 | static inline void unlock_task_sighand(struct task_struct *tsk, | ||
| 1232 | unsigned long *flags) | ||
| 1233 | { | ||
| 1234 | spin_unlock_irqrestore(&tsk->sighand->siglock, *flags); | ||
| 1235 | } | ||
| 1236 | |||
| 1228 | #ifndef __HAVE_THREAD_FUNCTIONS | 1237 | #ifndef __HAVE_THREAD_FUNCTIONS | 
| 1229 | 1238 | ||
| 1230 | #define task_thread_info(task) (task)->thread_info | 1239 | #define task_thread_info(task) (task)->thread_info | 
