s390/syscall: Merge __do_syscall() and do_syscall()
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 10 Mar 2025 09:33:42 +0000 (10:33 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 18 Mar 2025 16:13:04 +0000 (17:13 +0100)
commita0f2a8d05152512633b256459e9aceb7e588f372
tree5dff55a36ee361fce89106cf7533bc8fe3d8f97e
parentb46525437e1728596fda558894011ce64e5b0a9f
s390/syscall: Merge __do_syscall() and do_syscall()

The compiler inlines do_syscall() into __do_syscall(). Therefore do this in
C code as well, since this makes the code easier to understand.

Also adjust and add various unlikely() and likely() annotations.

Furthermore this allows to replace the separate exit_to_user_mode() and
syscall_exit_to_user_mode_work() calls with a combined
syscall_exit_to_user_mode() call which results in slightly better code.

Acked-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/syscall.c