diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-08-02 21:08:07 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-08-02 21:08:07 -0400 |
| commit | d52bd54db8be8999df6df5a776f38c4f8b5e9cea (patch) | |
| tree | 0d8f436e959bb975c002ddf12ea1bdc9adadd04f /include/linux/thread_info.h | |
| parent | 8cbdd85bda499d028b8f128191f392d701e8e41d (diff) | |
| parent | 3bd080e4d8f2351ee3e143f0ec9307cc95ae6639 (diff) | |
Merge branch 'akpm' (patches from Andrew)
Merge yet more updates from Andrew Morton:
- the rest of ocfs2
- various hotfixes, mainly MM
- quite a bit of misc stuff - drivers, fork, exec, signals, etc.
- printk updates
- firmware
- checkpatch
- nilfs2
- more kexec stuff than usual
- rapidio updates
- w1 things
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (111 commits)
ipc: delete "nr_ipc_ns"
kcov: allow more fine-grained coverage instrumentation
init/Kconfig: add clarification for out-of-tree modules
config: add android config fragments
init/Kconfig: ban CONFIG_LOCALVERSION_AUTO with allmodconfig
relay: add global mode support for buffer-only channels
init: allow blacklisting of module_init functions
w1:omap_hdq: fix regression
w1: add helper macro module_w1_family
w1: remove need for ida and use PLATFORM_DEVID_AUTO
rapidio/switches: add driver for IDT gen3 switches
powerpc/fsl_rio: apply changes for RIO spec rev 3
rapidio: modify for rev.3 specification changes
rapidio: change inbound window size type to u64
rapidio/idt_gen2: fix locking warning
rapidio: fix error handling in mbox request/release functions
rapidio/tsi721_dma: advance queue processing from transfer submit call
rapidio/tsi721: add messaging mbox selector parameter
rapidio/tsi721: add PCIe MRRS override parameter
rapidio/tsi721_dma: add channel mask and queue size parameters
...
Diffstat (limited to 'include/linux/thread_info.h')
| -rw-r--r-- | include/linux/thread_info.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/include/linux/thread_info.h b/include/linux/thread_info.h index b4c2a485b28a..352b1542f5cc 100644 --- a/include/linux/thread_info.h +++ b/include/linux/thread_info.h | |||
| @@ -105,47 +105,6 @@ static inline int test_ti_thread_flag(struct thread_info *ti, int flag) | |||
| 105 | 105 | ||
| 106 | #define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED) | 106 | #define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED) |
| 107 | 107 | ||
| 108 | #if defined TIF_RESTORE_SIGMASK && !defined HAVE_SET_RESTORE_SIGMASK | ||
| 109 | /* | ||
| 110 | * An arch can define its own version of set_restore_sigmask() to get the | ||
| 111 | * job done however works, with or without TIF_RESTORE_SIGMASK. | ||
| 112 | */ | ||
| 113 | #define HAVE_SET_RESTORE_SIGMASK 1 | ||
| 114 | |||
| 115 | /** | ||
| 116 | * set_restore_sigmask() - make sure saved_sigmask processing gets done | ||
| 117 | * | ||
| 118 | * This sets TIF_RESTORE_SIGMASK and ensures that the arch signal code | ||
| 119 | * will run before returning to user mode, to process the flag. For | ||
| 120 | * all callers, TIF_SIGPENDING is already set or it's no harm to set | ||
| 121 | * it. TIF_RESTORE_SIGMASK need not be in the set of bits that the | ||
| 122 | * arch code will notice on return to user mode, in case those bits | ||
| 123 | * are scarce. We set TIF_SIGPENDING here to ensure that the arch | ||
| 124 | * signal code always gets run when TIF_RESTORE_SIGMASK is set. | ||
| 125 | */ | ||
| 126 | static inline void set_restore_sigmask(void) | ||
| 127 | { | ||
| 128 | set_thread_flag(TIF_RESTORE_SIGMASK); | ||
| 129 | WARN_ON(!test_thread_flag(TIF_SIGPENDING)); | ||
| 130 | } | ||
| 131 | static inline void clear_restore_sigmask(void) | ||
| 132 | { | ||
| 133 | clear_thread_flag(TIF_RESTORE_SIGMASK); | ||
| 134 | } | ||
| 135 | static inline bool test_restore_sigmask(void) | ||
| 136 | { | ||
| 137 | return test_thread_flag(TIF_RESTORE_SIGMASK); | ||
| 138 | } | ||
| 139 | static inline bool test_and_clear_restore_sigmask(void) | ||
| 140 | { | ||
| 141 | return test_and_clear_thread_flag(TIF_RESTORE_SIGMASK); | ||
| 142 | } | ||
| 143 | #endif /* TIF_RESTORE_SIGMASK && !HAVE_SET_RESTORE_SIGMASK */ | ||
| 144 | |||
| 145 | #ifndef HAVE_SET_RESTORE_SIGMASK | ||
| 146 | #error "no set_restore_sigmask() provided and default one won't work" | ||
| 147 | #endif | ||
| 148 | |||
| 149 | #endif /* __KERNEL__ */ | 108 | #endif /* __KERNEL__ */ |
| 150 | 109 | ||
| 151 | #endif /* _LINUX_THREAD_INFO_H */ | 110 | #endif /* _LINUX_THREAD_INFO_H */ |
