Re: [PATCH] livepatch: Move the result-invariant calculation out of the loop
From: Jiri Kosina
Date: Tue Oct 18 2022 - 09:51:48 EST
On Fri, 30 Sep 2022, Petr Mladek wrote:
> > The calculation results of the variables 'func_addr' and 'func_size' are
> > not affected by the for loop and do not change due to the changes of
> > entries[i]. The performance can be improved by moving it outside the loop.
> >
> > No functional change.
> >
> > Signed-off-by: Zhen Lei <thunder.leizhen@xxxxxxxxxx>
>
> Makes sense:
>
> Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>
Seems like this wasn't picked up by anybody, so I have now pushed it to
livepatching.git#for-6.2/core
Thanks,
--
Jiri Kosina
SUSE Labs