mbox series

[0/5] Static initcalls

Message ID cover.1734448827.git.jerome.forissier@linaro.org
Headers show
Series Static initcalls | expand

Message

Jerome Forissier Dec. 17, 2024, 3:59 p.m. UTC
This series replaces the dynamic initcalls (with function pointers) with
static calls, and gets rid of initcall_run_list(), init_sequence_f,
init_sequence_f_r and init_sequence_r. This makes the code simpler and the
binary slighlty smaller: -2655 bytes/-0.25 % with LTO enabled and -1344
bytes/-0.12 % with LTO disabled (xilinx_zynqmp_kria_defconfig).

Execution time doesn't seem to change noticeably. There is no impact on
the SPL.

Jerome Forissier (4):
  board_init_f(): use static calls
  board_init_f_r(): use static calls
  board_init_r(): use static calls
  initcall: remove initcall_run_list()

Michal Simek (1):
  common: board: Simplify array with function pointers with
    CONFIG_IS_ENABLED

 common/board_f.c            | 213 +++++++++++++++----------------
 common/board_r.c            | 244 ++++++++++++++----------------------
 include/initcall.h          |  43 +++----
 lib/Makefile                |   1 -
 lib/initcall.c              | 102 ---------------
 test/py/tests/test_trace.py |   8 +-
 6 files changed, 218 insertions(+), 393 deletions(-)
 delete mode 100644 lib/initcall.c