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