MIPS: Add support for restartable sequences
authorPaul Burton <paul.burton@mips.com>
Thu, 14 Jun 2018 17:13:53 +0000 (10:13 -0700)
committerPaul Burton <paul.burton@mips.com>
Wed, 20 Jun 2018 04:13:17 +0000 (21:13 -0700)
commit9ea141ad54716d48e79d0093052c12ed67debf09
treed6b3b439562aaf1d21303078623f7e05793a9b02
parent18f3e95b90b28318ef35910d21c39908de672331
MIPS: Add support for restartable sequences

Implement support for restartable sequences on MIPS, which requires 3
simple things:

  - Call rseq_handle_notify_resume() on return to userspace if
    TIF_NOTIFY_RESUME is set.

  - Call rseq_signal_deliver() to fixup the pre-signal stack frame when
    a signal is delivered whilst executing a restartable sequence
    critical section.

  - Select CONFIG_HAVE_RSEQ.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Reviewed-by: James Hogan <jhogan@kernel.org>
Patchwork: https://patchwork.linux-mips.org/patch/19523/
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
arch/mips/Kconfig
arch/mips/kernel/signal.c