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:
parent
fc4ae7ae84
commit
fcf22e59b8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue