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
..
2008-08-15 09:19:40 -07:00
2012-12-17 14:12:19 +00:00
2008-08-15 09:19:40 -07:00
2009-08-03 09:05:00 +01:00
2009-12-12 13:08:14 +01:00
2016-06-16 10:48:33 +02:00
2014-12-11 21:15:05 -05:00
2014-04-18 11:40:31 +02:00
2009-12-18 01:14:52 -05:00
2008-08-15 09:19:40 -07:00
2010-08-31 22:45:31 -04:00
2011-02-17 16:54:39 +01:00
2016-03-13 23:55:13 -04:00
2015-05-13 10:55:42 +02:00
2012-12-17 14:12:19 +00:00
2012-12-17 14:12:19 +00:00
2008-08-15 09:19:40 -07:00
2008-08-15 09:19:40 -07:00
2008-08-15 09:19:40 -07:00
2012-03-28 18:11:12 +01:00
2010-03-18 22:35:28 -04:00
2012-03-28 18:11:12 +01:00
2008-08-15 09:19:40 -07:00
2012-03-28 18:11:12 +01:00
2010-03-18 22:35:28 -04:00
2010-03-18 22:35:28 -04:00
2008-08-15 09:19:40 -07:00
2008-08-15 09:19:40 -07:00
2008-08-15 09:19:40 -07:00
2008-08-15 09:19:40 -07:00
2008-08-15 09:19:40 -07:00
2016-01-20 17:09:18 -08:00
2008-08-15 09:19:40 -07:00
2012-03-28 18:11:12 +01:00
2008-08-15 09:19:40 -07:00
2008-08-15 09:19:40 -07:00
2008-08-15 09:19:40 -07:00
2008-08-15 09:19:40 -07:00
2008-08-15 09:19:40 -07:00
2013-04-07 12:59:30 -07:00
2012-12-17 14:12:19 +00:00
2009-03-02 16:49:37 -05:00
2012-03-05 15:49:43 -08:00
2008-08-15 09:19:40 -07:00
2009-09-22 07:17:43 -07:00
2010-08-09 20:45:03 -07:00
2008-08-15 09:19:40 -07:00
2008-08-15 09:19:40 -07:00
2015-09-17 21:16:07 -07:00
2008-08-15 09:19:40 -07:00
2011-01-17 05:42:13 +01:00
2012-03-28 18:11:12 +01:00
2008-08-15 09:19:40 -07:00
2015-07-17 16:39:53 -07:00
2008-08-15 09:19:40 -07:00
2009-06-16 19:47:51 -07:00
2013-03-03 22:55:19 -05:00
2010-06-09 11:12:36 +02:00
2011-07-26 16:49:47 -07:00
2013-11-16 16:33:16 -08:00
2008-08-15 09:19:40 -07:00
2012-03-28 18:11:12 +01:00
2012-03-28 18:11:12 +01:00
2008-08-15 09:19:40 -07:00
2013-07-03 16:07:39 -07:00
2012-09-28 14:31:03 +09:30
2008-08-15 09:19:40 -07:00
2009-06-11 21:02:17 +02:00
2013-11-16 16:33:21 -08:00
2013-07-19 13:54:26 -07:00
2013-01-03 15:57:13 -08:00
2016-03-07 10:40:02 -06:00
2009-06-30 18:55:59 -07:00
2010-11-26 15:14:56 +01:00
2016-06-24 17:23:52 -07:00
2015-02-11 17:06:03 -08:00
2015-04-17 09:03:53 -04:00
2014-01-31 09:21:55 -08:00
2013-11-16 16:33:16 -08:00
2016-06-08 15:16:59 +02:00
2008-08-15 09:19:40 -07:00
2016-01-28 14:17:42 -08:00
2008-08-15 09:19:40 -07:00
2008-08-15 09:19:40 -07:00
2013-02-03 15:09:22 -05:00
2011-05-25 08:39:43 -07:00
2012-12-17 14:12:19 +00:00
2012-03-28 18:11:12 +01:00
2009-12-14 23:55:32 +01:00
2016-06-14 11:55:15 +02:00
2013-11-16 16:33:09 -08:00
2012-03-28 18:11:12 +01:00
2014-09-23 16:20:03 -04:00
2012-12-17 14:12:19 +00:00
2016-08-02 19:35:23 -04:00
2008-08-15 09:19:40 -07:00
2009-07-27 12:10:38 -07:00
2009-06-24 15:13:52 +09:00
2010-01-14 13:21:35 -05:00
2015-05-26 10:01:45 -07:00
2016-03-22 15:36:02 -07:00
2008-08-15 09:19:40 -07:00
2008-08-15 09:19:40 -07:00
2015-05-26 10:01:50 -07:00
2008-08-15 09:19:40 -07:00
2008-08-15 09:19:40 -07:00
2015-10-06 14:53:16 -04:00
2010-08-09 20:45:04 -07:00
2012-04-13 13:15:16 -04:00
2008-08-15 09:19:40 -07:00