Skip to content

Commit bb862b0

Browse files
fbqKAGA-KOKO
authored andcommitted
powerpc: Wire up restartable sequences system call
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 <[email protected]> Signed-off-by: Mathieu Desnoyers <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: Joel Fernandes <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Dave Watson <[email protected]> Cc: Will Deacon <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: "H . Peter Anvin" <[email protected]> Cc: Chris Lameter <[email protected]> Cc: Russell King <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Andrew Hunter <[email protected]> Cc: Michael Kerrisk <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: "Paul E . McKenney" <[email protected]> Cc: Paul Turner <[email protected]> Cc: Josh Triplett <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Ben Maurer <[email protected]> Cc: [email protected] Cc: [email protected] Cc: Andy Lutomirski <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Linus Torvalds <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 6f37be4 commit bb862b0

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

arch/powerpc/include/asm/systbl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,3 +392,4 @@ SYSCALL(statx)
392392
SYSCALL(pkey_alloc)
393393
SYSCALL(pkey_free)
394394
SYSCALL(pkey_mprotect)
395+
SYSCALL(rseq)

arch/powerpc/include/asm/unistd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <uapi/asm/unistd.h>
1313

1414

15-
#define NR_syscalls 387
15+
#define NR_syscalls 388
1616

1717
#define __NR__exit __NR_exit
1818

arch/powerpc/include/uapi/asm/unistd.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,5 +398,6 @@
398398
#define __NR_pkey_alloc 384
399399
#define __NR_pkey_free 385
400400
#define __NR_pkey_mprotect 386
401+
#define __NR_rseq 387
401402

402403
#endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */

0 commit comments

Comments
 (0)