diff options
author | Al Viro | 2018-03-19 23:26:39 -0400 |
---|---|---|
committer | Al Viro | 2018-03-20 12:04:00 -0400 |
commit | 6de7617e8892666073a9a8f6ba7e2f7882f4cadc (patch) | |
tree | 6689525c681c1fd32e96ec243e53dce30bd81df0 /arch/sparc | |
parent | ee076e81fc14ca79334d02970cea66604f183a14 (diff) |
sparc: get rid of memory_ordering(2) wrapper
use current_pt_regs() in it instead
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/sys_sparc_64.c | 4 | ||||
-rw-r--r-- | arch/sparc/kernel/syscalls.S | 3 | ||||
-rw-r--r-- | arch/sparc/kernel/systbls.h | 3 |
3 files changed, 3 insertions, 7 deletions
diff --git a/arch/sparc/kernel/sys_sparc_64.c b/arch/sparc/kernel/sys_sparc_64.c index c15765539f65..b929414fa9f2 100644 --- a/arch/sparc/kernel/sys_sparc_64.c +++ b/arch/sparc/kernel/sys_sparc_64.c @@ -606,9 +606,9 @@ SYSCALL_DEFINE5(utrap_install, utrap_entry_t, type, return 0; } -asmlinkage long sparc_memory_ordering(unsigned long model, - struct pt_regs *regs) +SYSCALL_DEFINE1(memory_ordering, unsigned long, model) { + struct pt_regs *regs = current_pt_regs(); if (model >= 3) return -EINVAL; regs->tstate = (regs->tstate & ~TSTATE_MM) | (model << 14); diff --git a/arch/sparc/kernel/syscalls.S b/arch/sparc/kernel/syscalls.S index f4c8fa7a4b35..d7d86b95011a 100644 --- a/arch/sparc/kernel/syscalls.S +++ b/arch/sparc/kernel/syscalls.S @@ -30,9 +30,6 @@ sys32_execveat: sys_nis_syscall: ba,pt %xcc, c_sys_nis_syscall add %sp, PTREGS_OFF, %o0 -sys_memory_ordering: - ba,pt %xcc, sparc_memory_ordering - add %sp, PTREGS_OFF, %o1 #ifdef CONFIG_COMPAT sys32_sigstack: ba,pt %xcc, do_sys32_sigstack diff --git a/arch/sparc/kernel/systbls.h b/arch/sparc/kernel/systbls.h index 432aa84ad009..3352dbac9d55 100644 --- a/arch/sparc/kernel/systbls.h +++ b/arch/sparc/kernel/systbls.h @@ -46,8 +46,7 @@ asmlinkage long sys_utrap_install(utrap_entry_t type, utrap_handler_t new_d, utrap_handler_t __user *old_p, utrap_handler_t __user *old_d); -asmlinkage long sparc_memory_ordering(unsigned long model, - struct pt_regs *regs); +asmlinkage long sys_memory_ordering(unsigned long model); asmlinkage void sparc64_set_context(struct pt_regs *regs); asmlinkage void sparc64_get_context(struct pt_regs *regs); asmlinkage long sys32_truncate64(const char __user * path, |