entry: Add syscall_exit_to_user_mode_work()
authorSven Schnelle <svens@linux.ibm.com>
Tue, 1 Dec 2020 14:27:55 +0000 (15:27 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 2 Dec 2020 14:07:58 +0000 (15:07 +0100)
commitc6156e1da633f241e132eaea3b676d674376d770
treec3d78a19a518c4e3358f1949306be1494b55d793
parent310de1a678b2184c078c593dae343cb79c807f8d
entry: Add syscall_exit_to_user_mode_work()

This is the same as syscall_exit_to_user_mode() but without calling
exit_to_user_mode(). This can be used if there is an architectural reason
to avoid the combo function, e.g. restarting a syscall without returning to
userspace. Before returning to user space the caller has to invoke
exit_to_user_mode().

[ tglx: Amended comments ]

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20201201142755.31931-6-svens@linux.ibm.com
include/linux/entry-common.h
kernel/entry/common.c