Andy Lutomirski
7e7814180b
signal: consolidate {TS,TLF}_RESTORE_SIGMASK code
...
In general, there's no need for the "restore sigmask" flag to live in
ti->flags. alpha, ia64, microblaze, powerpc, sh, sparc (64-bit only),
tile, and x86 use essentially identical alternative implementations,
placing the flag in ti->status.
Replace those optimized implementations with an equally good common
implementation that stores it in a bitfield in struct task_struct and
drop the custom implementations.
Additional architectures can opt in by removing their
TIF_RESTORE_SIGMASK defines.
Link: http://lkml.kernel.org/r/8a14321d64a28e40adfddc90e18a96c086a6d6f9.1468522723.git.luto@kernel.org
Signed-off-by: Andy Lutomirski <luto@kernel.org >
Tested-by: Michael Ellerman <mpe@ellerman.id.au > [powerpc]
Cc: Richard Henderson <rth@twiddle.net >
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru >
Cc: Matt Turner <mattst88@gmail.com >
Cc: Tony Luck <tony.luck@intel.com >
Cc: Fenghua Yu <fenghua.yu@intel.com >
Cc: Michal Simek <monstr@monstr.eu >
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Yoshinori Sato <ysato@users.sourceforge.jp >
Cc: Rich Felker <dalias@libc.org >
Cc: "David S. Miller" <davem@davemloft.net >
Cc: Chris Metcalf <cmetcalf@mellanox.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Borislav Petkov <bp@suse.de >
Cc: Brian Gerst <brgerst@gmail.com >
Cc: Dmitry Safonov <dsafonov@virtuozzo.com >
Cc: Oleg Nesterov <oleg@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2016-08-02 19:35:23 -04:00
..
2016-07-30 11:32:01 -07:00
2016-04-20 10:36:57 +02:00
2015-09-16 15:47:51 +02:00
2016-05-23 17:04:14 -07:00
2016-08-02 17:31:41 -04:00
2016-08-02 19:35:23 -04:00
2016-07-14 09:34:39 +02:00
2016-03-17 19:45:44 +00:00
2012-06-14 14:12:18 +09:00
2014-04-03 16:20:52 -07:00
2016-08-02 17:31:41 -04:00
2011-12-23 11:58:34 +01:00
2012-05-10 17:20:01 +09:00
2016-06-08 09:55:20 +02:00
2013-01-21 14:43:13 -08:00
2012-03-30 19:31:22 +09:00
2014-07-23 15:10:54 -07:00