[PATCH -next V10 06/10] riscv: entry: Consolidate ret_from_kernel_thread into ret_from_fork

Guo Ren guoren at kernel.org
Thu Dec 8 18:01:52 PST 2022


On Thu, Dec 8, 2022 at 6:12 PM Björn Töpel <bjorn at kernel.org> wrote:
>
> guoren at kernel.org writes:
>
> > From: Jisheng Zhang <jszhang at kernel.org>
> >
> > 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 make entry.S more clean.
>
> Nit: "it makes".
Okay.

>
>
> Björn



-- 
Best Regards
 Guo Ren



More information about the linux-riscv mailing list