riscv: ftrace: Use ftrace_get_regs helper
Use ftrace_get_regs() helper call to get pt_regs from ftrace_regs struct, this makes the code simpler. Signed-off-by:Nanyong Sun <sunnanyong@huawei.com> Signed-off-by:
Palmer Dabbelt <palmerdabbelt@google.com>
parent
86b276c1
Please register or sign in to comment