riscv: entry: Split ret_from_fork() into user and kernel
This function was unified into a single function in commit ab9164da ("riscv: entry: Consolidate ret_from_kernel_thread into ret_from_fork"). However that imposed a performance degradation. Partially reverting this commit to have ret_from_fork() split again, results in a 1% increase on the number of times fork is able to be called per second. Signed-off-by:Charlie Jenkins <charlie@rivosinc.com> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de> Acked-by:
Alexandre Ghiti <alexghiti@rivosinc.com> Link: https://lore.kernel.org/all/20250320-riscv_optimize_entry-v6-2-63e187e26041@rivosinc.com
Loading
Please sign in to comment