lkml.org 
[lkml]   [2018]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC PATCH for 4.17 08/21] powerpc: Wire up restartable sequences system call
    Date
    From: Boqun Feng <boqun.feng@gmail.com>

    Wire up the rseq system call on powerpc.

    This provides an ABI improving the speed of a user-space getcpu
    operation on powerpc by skipping the getcpu system call on the fast
    path, as well as improving the speed of user-space operations on per-cpu
    data compared to using load-reservation/store-conditional atomics.

    Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
    CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    CC: Paul Mackerras <paulus@samba.org>
    CC: Michael Ellerman <mpe@ellerman.id.au>
    CC: Peter Zijlstra <peterz@infradead.org>
    CC: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
    CC: linuxppc-dev@lists.ozlabs.org
    ---
    arch/powerpc/include/asm/systbl.h | 1 +
    arch/powerpc/include/asm/unistd.h | 2 +-
    arch/powerpc/include/uapi/asm/unistd.h | 1 +
    3 files changed, 3 insertions(+), 1 deletion(-)

    diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h
    index d61f9c96d916..45d4d37495fd 100644
    --- a/arch/powerpc/include/asm/systbl.h
    +++ b/arch/powerpc/include/asm/systbl.h
    @@ -392,3 +392,4 @@ SYSCALL(statx)
    SYSCALL(pkey_alloc)
    SYSCALL(pkey_free)
    SYSCALL(pkey_mprotect)
    +SYSCALL(rseq)
    diff --git a/arch/powerpc/include/asm/unistd.h b/arch/powerpc/include/asm/unistd.h
    index daf1ba97a00c..1e9708632dce 100644
    --- a/arch/powerpc/include/asm/unistd.h
    +++ b/arch/powerpc/include/asm/unistd.h
    @@ -12,7 +12,7 @@
    #include <uapi/asm/unistd.h>


    -#define NR_syscalls 387
    +#define NR_syscalls 388

    #define __NR__exit __NR_exit

    diff --git a/arch/powerpc/include/uapi/asm/unistd.h b/arch/powerpc/include/uapi/asm/unistd.h
    index 389c36fd8299..ac5ba55066dd 100644
    --- a/arch/powerpc/include/uapi/asm/unistd.h
    +++ b/arch/powerpc/include/uapi/asm/unistd.h
    @@ -398,5 +398,6 @@
    #define __NR_pkey_alloc 384
    #define __NR_pkey_free 385
    #define __NR_pkey_mprotect 386
    +#define __NR_rseq 387

    #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */
    --
    2.11.0
    \
     
     \ /
      Last update: 2018-03-27 18:10    [W:5.101 / U:0.360 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site