aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2007-12-06 11:15:50 -0500
committerMatthew Wilcox <willy@linux.intel.com>2007-12-06 17:35:35 -0500
commitf776d12dd16da1b0cd55a1240002c1b31f315d5d (patch)
treeb57a69c2143361edf6b2c2d4fd1b6e8616c8f347 /include/linux/sched.h
parentf021a3c2b14d0dd082c2cee890c204d9e1dee52b (diff)
Add fatal_signal_pending
Like signal_pending, but it's only true for signals which are fatal to this process Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 70d87f2fd23..95395c143ba 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1872,7 +1872,14 @@ static inline int signal_pending(struct task_struct *p)
1872{ 1872{
1873 return unlikely(test_tsk_thread_flag(p,TIF_SIGPENDING)); 1873 return unlikely(test_tsk_thread_flag(p,TIF_SIGPENDING));
1874} 1874}
1875 1875
1876extern int FASTCALL(__fatal_signal_pending(struct task_struct *p));
1877
1878static inline int fatal_signal_pending(struct task_struct *p)
1879{
1880 return signal_pending(p) && __fatal_signal_pending(p);
1881}
1882
1876static inline int need_resched(void) 1883static inline int need_resched(void)
1877{ 1884{
1878 return unlikely(test_thread_flag(TIF_NEED_RESCHED)); 1885 return unlikely(test_thread_flag(TIF_NEED_RESCHED));