entry: Add exit_to_user_mode() wrapper
authorSven Schnelle <svens@linux.ibm.com>
Tue, 1 Dec 2020 14:27:54 +0000 (15:27 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 2 Dec 2020 14:07:57 +0000 (15:07 +0100)
commit310de1a678b2184c078c593dae343cb79c807f8d
treee3068fff603e0bd1f607deb8aeb55644bd12816b
parent96e2fbccd0fc806364a964fdf072bfc858a66109
entry: Add exit_to_user_mode() wrapper

Called from architecture specific code when syscall_exit_to_user_mode() is
not suitable. It simply calls __exit_to_user_mode().

This way __exit_to_user_mode() can still be inlined because it is declared
static __always_inline.

[ tglx: Amended comments and moved it to a different place in the header ]

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-5-svens@linux.ibm.com
include/linux/entry-common.h
kernel/entry/common.c