diff options
author | Jisheng Zhang <jszhang@kernel.org> | 2023-02-22 06:30:20 +0300 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2023-03-23 18:47:02 +0300 |
commit | ab9164dae27334415537ccf1c3fbabf56b7793b2 (patch) | |
tree | c378c18fa04b5d9fe23d0865a227fb76f708ec6c /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 0bf298ad2b61ae69d38826f3513e5fffc3fe3a53 (diff) | |
download | linux-ab9164dae27334415537ccf1c3fbabf56b7793b2.tar.xz |
riscv: entry: Consolidate ret_from_kernel_thread into ret_from_fork
The ret_from_kernel_thread() behaves similarly with ret_from_fork(),
the only difference is whether call the fn(arg) or not, this can be
achieved by testing fn is NULL or not, I.E s0 is 0 or not. Many
architectures have done the same thing, it makes entry.S more clean.
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Björn Töpel <bjorn@rivosinc.com>
Reviewed-by: Guo Ren <guoren@kernel.org>
Tested-by: Guo Ren <guoren@kernel.org>
Signed-off-by: Guo Ren <guoren@kernel.org>
Link: https://lore.kernel.org/r/20230222033021.983168-7-guoren@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions