tag | 94a3cd6cbc3277c054d2069370bdc4c423d5457a | |
---|---|---|
tagger | Petr Mladek <pmladek@suse.com> | Mon Dec 12 15:25:49 2022 +0100 |
object | 53910ef7ba04fbf1ea74037fa997d3aa1ae3e0bd |
Livepatching changes for 6.2
commit | 53910ef7ba04fbf1ea74037fa997d3aa1ae3e0bd | [log] [tgz] |
---|---|---|
author | Zhen Lei <thunder.leizhen@huawei.com> | Fri Sep 30 09:54:46 2022 +0800 |
committer | Jiri Kosina <jkosina@suse.cz> | Tue Oct 18 15:50:31 2022 +0200 |
tree | 95a741ee486552bf096664579ab06073cf337853 | |
parent | 4de65c5830233e7a4adf2e679510089ec4e210c7 [diff] |
livepatch: Move the result-invariant calculation out of the loop 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@huawei.com> Reviewed-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>