CONFIG_USE_SWITCH

Use new-style _arch_switch instead of __swap

Type: bool

Help

The _arch_switch() API is a lower level context switching primitive than the original __swap mechanism. It is required for an SMP-aware scheduler, or if the architecture does not provide __swap. In uniprocess situations where the architecture provides both, _arch_switch incurs more somewhat overhead and may be slower.

Defaults

No defaults. Implicitly defaults to n.

Symbols that select this symbol

Kconfig definition

At kernel/Kconfig:648

Included via Kconfig:10Kconfig.zephyr:25

Menu path: (top menu) → General Kernel Options → SMP Options

config USE_SWITCH
    bool
    prompt "Use new-style _arch_switch instead of __swap"
    help
      The _arch_switch() API is a lower level context switching
      primitive than the original __swap mechanism.  It is required
      for an SMP-aware scheduler, or if the architecture does not
      provide __swap.  In uniprocess situations where the
      architecture provides both, _arch_switch incurs more somewhat
      overhead and may be slower.

(Definitions include propagated dependencies, including from if’s and menus.)