commit | b89e427bd6fd2b85b425556c0eab06934a2edeb9 | [log] [tgz] |
---|---|---|
author | Andy Ross <andyross@google.com> | Fri May 26 09:12:51 2023 -0700 |
committer | jgl-meta <126111723+jgl-meta@users.noreply.github.com> | Fri May 26 17:09:35 2023 -0400 |
tree | 781ee12a9873a6cda71b7c37fc787f0b78785c36 | |
parent | d8d119fd9c04335fc5dfd71aecb49edc92599770 [diff] |
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: Andy Ross <andyross@google.com>