diff options
| author | Charlie Jenkins <[email protected]> | 2025-03-20 17:29:24 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2025-04-29 06:27:10 +0000 |
| commit | e43b8bb56e537bfc8d9076793091e7679020fc9c (patch) | |
| tree | 09408430f506bdb97c351e4950bd58520be72945 /rust/helpers/task.c | |
| parent | LoongArch: entry: Migrate ret_from_fork() to C (diff) | |
| download | kernel-e43b8bb56e537bfc8d9076793091e7679020fc9c.tar.gz kernel-e43b8bb56e537bfc8d9076793091e7679020fc9c.zip | |
entry: Inline syscall_exit_to_user_mode()
Similar to commit 221a164035fd ("entry: Move syscall_enter_from_user_mode()
to header file"), move syscall_exit_to_user_mode() to the header file as
well.
Testing was done with the byte-unixbench syscall benchmark (which calls
getpid) and QEMU. On riscv I measured a 7.09246% improvement, on x86 a
2.98843% improvement, on loongarch a 6.07954% improvement, and on s390 a
11.1328% improvement.
The Intel bot also reported "kernel test robot noticed a 1.9% improvement
of stress-ng.seek.ops_per_sec".
Signed-off-by: Charlie Jenkins <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Alexandre Ghiti <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Link: https://lore.kernel.org/linux-riscv/[email protected]/
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions
