summaryrefslogtreecommitdiff
path: root/arch/s390/kernel/syscall.c
diff options
context:
space:
mode:
authorSven Schnelle <svens@linux.ibm.com>2021-01-18 11:35:38 +0300
committerVasily Gorbik <gor@linux.ibm.com>2021-01-19 14:29:27 +0300
commit3a790cc1c9ef1b7b613cf648e6fb756a842caa16 (patch)
tree18fb3bac5d91bb330cfa39e982e74d8e18171f27 /arch/s390/kernel/syscall.c
parent39589ada1cab9548325767e6aea43a31132467de (diff)
downloadlinux-3a790cc1c9ef1b7b613cf648e6fb756a842caa16.tar.xz
s390: pass struct pt_regs instead of registers to syscalls
Instead of fetching all registers from struct pt_regs and passing them to the syscall wrappers, let the system call wrappers only fetch the values really required. Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel/syscall.c')
-rw-r--r--arch/s390/kernel/syscall.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/s390/kernel/syscall.c b/arch/s390/kernel/syscall.c
index 25c0fb19b0a5..bc8e650e377d 100644
--- a/arch/s390/kernel/syscall.c
+++ b/arch/s390/kernel/syscall.c
@@ -132,12 +132,8 @@ void do_syscall(struct pt_regs *regs)
*/
if (!test_pt_regs_flag(regs, PIF_SYSCALL_RET_SET)) {
regs->gprs[2] = -ENOSYS;
- if (likely(nr < NR_syscalls)) {
- regs->gprs[2] = current->thread.sys_call_table[nr](
- regs->orig_gpr2, regs->gprs[3],
- regs->gprs[4], regs->gprs[5],
- regs->gprs[6], regs->gprs[7]);
- }
+ if (likely(nr < NR_syscalls))
+ regs->gprs[2] = current->thread.sys_call_table[nr](regs);
} else {
clear_pt_regs_flag(regs, PIF_SYSCALL_RET_SET);
}