Restartable sequences: Wire up powerpc system call
authorBoqun Feng <boqun.feng@gmail.com>
Wed, 27 Jul 2016 15:05:16 +0000 (23:05 +0800)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 21 Oct 2016 22:28:15 +0000 (18:28 -0400)
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>
arch/powerpc/include/asm/systbl.h
arch/powerpc/include/asm/unistd.h
arch/powerpc/include/uapi/asm/unistd.h

index 2fc5d4db503ccd03dfb40923267a2b763500cd22..c68f4d0d00b2f7d5cf644c34ccd745cf272860c0 100644 (file)
@@ -386,3 +386,4 @@ SYSCALL(mlock2)
 SYSCALL(copy_file_range)
 COMPAT_SYS_SPU(preadv2)
 COMPAT_SYS_SPU(pwritev2)
+SYSCALL(rseq)
index cf12c580f6b286b957b0280d8174cc3d8c203d2f..a01e97d3f305d77fbfda835af411538f773e5cc1 100644 (file)
@@ -12,7 +12,7 @@
 #include <uapi/asm/unistd.h>
 
 
-#define NR_syscalls            382
+#define NR_syscalls            383
 
 #define __NR__exit __NR_exit
 
index e9f5f41aa55a1bc206749d56e75bd8edbb1d4068..d1849d64c8effe53aa3e944a594e532f2c9d815f 100644 (file)
 #define __NR_copy_file_range   379
 #define __NR_preadv2           380
 #define __NR_pwritev2          381
+#define __NR_rseq              382
 
 #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */
This page took 0.026915 seconds and 5 git commands to generate.