diff options
Diffstat (limited to 'include/linux/thread_info.h')
-rw-r--r-- | include/linux/thread_info.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/linux/thread_info.h b/include/linux/thread_info.h index accd7bad35b0..43d8162c696e 100644 --- a/include/linux/thread_info.h +++ b/include/linux/thread_info.h | |||
@@ -92,6 +92,19 @@ static inline int test_ti_thread_flag(struct thread_info *ti, int flag) | |||
92 | #define set_need_resched() set_thread_flag(TIF_NEED_RESCHED) | 92 | #define set_need_resched() set_thread_flag(TIF_NEED_RESCHED) |
93 | #define clear_need_resched() clear_thread_flag(TIF_NEED_RESCHED) | 93 | #define clear_need_resched() clear_thread_flag(TIF_NEED_RESCHED) |
94 | 94 | ||
95 | #endif | 95 | #ifdef TIF_RESTORE_SIGMASK |
96 | /** | ||
97 | * set_restore_sigmask() - make sure saved_sigmask processing gets done | ||
98 | * | ||
99 | * This sets TIF_RESTORE_SIGMASK and ensures that the arch signal code | ||
100 | * will run before returning to user mode, to process the flag. | ||
101 | */ | ||
102 | static inline void set_restore_sigmask(void) | ||
103 | { | ||
104 | set_thread_flag(TIF_RESTORE_SIGMASK); | ||
105 | } | ||
106 | #endif /* TIF_RESTORE_SIGMASK */ | ||
107 | |||
108 | #endif /* __KERNEL__ */ | ||
96 | 109 | ||
97 | #endif /* _LINUX_THREAD_INFO_H */ | 110 | #endif /* _LINUX_THREAD_INFO_H */ |