LoongArch: entry: Migrate ret_from_fork() to C
authorCharlie Jenkins <charlie@rivosinc.com>
Thu, 20 Mar 2025 17:29:23 +0000 (10:29 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 29 Apr 2025 06:27:10 +0000 (08:27 +0200)
commit7ace1602abf21da505993d77ccbae1df2496b324
tree466995bcc04919135c37dd500f9912c53adadfbd
parent5b3d6103b343d59e19bd641e4c31df519f4d250d
LoongArch: entry: Migrate ret_from_fork() to C

LoongArch is the only architecture that calls syscall_exit_to_user_mode()
from assembly.

Move the call into C so that this function can be inlined across all
architectures.

Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250320-riscv_optimize_entry-v6-3-63e187e26041@rivosinc.com
arch/loongarch/include/asm/asm-prototypes.h
arch/loongarch/kernel/entry.S
arch/loongarch/kernel/process.c