On Tue, Sep 14, 2021 at 05:30:14PM +0800, Feiyang Chen wrote: > On Tue, 14 Sept 2021 at 16:54, Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx> wrote: > > > > > > > > 在 2021/9/14 2:50, Feiyang Chen 写道: > > > Convert MIPS to use the generic entry infrastructure from > > > kernel/entry/*. > > > > > > v2: Use regs->regs[27] to mark whether to restore all registers in > > > handle_sys and enable IRQ stack. > > Hi Feiyang, > > > > Thanks for your patch, could you please expand how could this improve > > the performance? > > > > Hi, Jiaxun, > > We always restore all registers in handle_sys in the v1 of the > patchset. Since regs->regs[27] is marked where we need to restore all > registers, now we simply use it as the return value of do_syscall to > determine whether we can only restore partial registers in handle_sys. can people, who provided performance numbers for v1 do the same for v2 ? Thomas, -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]