lkml.org 
[lkml]   [2021]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[PATCH mips-next 0/2] MIPS: optimize relocations processing
This series converts the logics of two main relocation functions,
one for relocatable kernel and one for modules, from the arrays of
handlers (callbacks) to plain switch-case functions, which allows
the compiler to greatly optimize the code, so the relocations will
be applied faster with lesser code size.

Tested on MIPS32 R2 with GCC 10.2 and LLVM 11.0 with -O2.

Alexander Lobakin (2):
MIPS: module: optimize module relocations processing
MIPS: relocatable: optimize the relocation process

arch/mips/kernel/module.c | 109 +++++++++++++++++-------------------
arch/mips/kernel/relocate.c | 54 ++++++++++--------
2 files changed, 82 insertions(+), 81 deletions(-)

--
2.30.0


\
 
 \ /
  Last update: 2021-01-16 18:32    [W:0.052 / U:1.840 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site