]> git.ipfire.org Git - thirdparty/linux.git/commit
entry: Rework syscall_exit_to_user_mode_work() for architecture reuse
authorJinjie Ruan <ruanjinjie@huawei.com>
Wed, 28 Jan 2026 03:19:29 +0000 (11:19 +0800)
committerThomas Gleixner <tglx@kernel.org>
Fri, 30 Jan 2026 14:38:09 +0000 (15:38 +0100)
commite1647100c22eb718e9833211722cbb78e339047c
tree50bbf22e299450eac5911bc65a12174284765672
parent03150a9f84b328f5c724b8ed9ff8600c2d7e2d7b
entry: Rework syscall_exit_to_user_mode_work() for architecture reuse

syscall_exit_to_user_mode_work() invokes local_irq_disable_exit_to_user()
and syscall_exit_to_user_mode_prepare() after handling pending syscall exit
work.

The conversion of ARM64 to the generic entry code requires this to be split
up, so move the invocations of local_irq_disable_exit_to_user() and
syscall_exit_to_user_mode_prepare() into the only caller.

No functional change intended.

[ tglx: Massaged changelog and comments ]

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Reviewed-by: Kevin Brodsky <kevin.brodsky@arm.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://patch.msgid.link/20260128031934.3906955-10-ruanjinjie@huawei.com
include/linux/entry-common.h