• Paul Burton's avatar
    MIPS: Add support for restartable sequences · 9ea141ad
    Paul Burton authored
    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: default avatarPaul Burton <paul.burton@mips.com>
    Reviewed-by: default avatarJames 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
    9ea141ad
signal.c 22.2 KB