xtensa: mark arch_switch ALWAYS_INLINE

arch_switch() is basically an alias to xtensa_switch() so
we can mark arch_switch() as ALWAYS_INLINE to avoid another
function call, especially when no optimization is used when
debugging.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2023-09-06 14:34:51 -07:00 committed by Carles Cufí
commit fcf22e59b8

View file

@ -70,7 +70,7 @@ static ALWAYS_INLINE void arch_kernel_init(void)
void xtensa_switch(void *switch_to, void **switched_from);
static inline void arch_switch(void *switch_to, void **switched_from)
static ALWAYS_INLINE void arch_switch(void *switch_to, void **switched_from)
{
return xtensa_switch(switch_to, switched_from);
}