]> Gentwo Git Trees - linux/.git/commit
entry: Split up exit_to_user_mode_prepare()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 27 Oct 2025 08:45:21 +0000 (09:45 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 4 Nov 2025 07:35:17 +0000 (08:35 +0100)
commit70fe25a3bc53a891f0e6184c12bd55cc524cb13b
tree9860f3eace951fd9cec78081da4bd369317337e0
parent3db6b38dfe640207da706b286d4181237391f5bd
entry: Split up exit_to_user_mode_prepare()

exit_to_user_mode_prepare() is used for both interrupts and syscalls, but
there is extra rseq work, which is only required for in the interrupt exit
case.

Split up the function and provide wrappers for syscalls and interrupts,
which allows to separate the rseq exit work in the next step.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://patch.msgid.link/20251027084307.782234789@linutronix.de
arch/arm64/kernel/entry-common.c
include/linux/entry-common.h
include/linux/irq-entry-common.h