Skip to content
Commit 909ff45f authored by Peter Mitsis's avatar Peter Mitsis Committed by Benjamin Cabé
Browse files

kernel: arch: move arch_swap() declaration



Moves the arch_swap() declaration out of kernel_arch_interface.h
and into the various architectures' kernel_arch_func.h. This
permits the arch_swap() to be inlined on ARM, but extern'd on
the other architectures that still implement arch_swap().

Inlining this function on ARM has shown at least a +5% performance
boost according to the thread_metric benchmark on the disco_l475_iot1
board.

Signed-off-by: default avatarPeter Mitsis <peter.mitsis@intel.com>
parent fd1e9f74
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment