diff options
author | Jisheng Zhang <[email protected]> | 2023-02-21 22:30:20 -0500 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2023-03-23 08:47:02 -0700 |
commit | ab9164dae27334415537ccf1c3fbabf56b7793b2 (patch) | |
tree | c378c18fa04b5d9fe23d0865a227fb76f708ec6c /tools/perf/scripts/python/flamegraph.py | |
parent | 0bf298ad2b61ae69d38826f3513e5fffc3fe3a53 (diff) |
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 <[email protected]>
Reviewed-by: Björn Töpel <[email protected]>
Reviewed-by: Guo Ren <[email protected]>
Tested-by: Guo Ren <[email protected]>
Signed-off-by: Guo Ren <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions