Skip to content
Commit b89e427b authored by Andy Ross's avatar Andy Ross Committed by jgl-meta
Browse files

kernel/sched: Rename/redocument wait_for_switch() -> z_sched_switch_spin()



This trick turns out also to be needed by the abort/join code.
Promote it to a more formal-looking internal API and clean up the
documentation to (hopefully) clarify the exact behavior and better
explain the need.

This is one of the more... enchanted bits of the scheduler, and while
the trick is IMHO pretty clean, it remains a big SMP footgun.

Signed-off-by: default avatarAndy Ross <andyross@google.com>
parent d8d119fd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment