Skip to content
Commit b3ff9ae8 authored by Andy Ross's avatar Andy Ross Committed by Benjamin Cabé
Browse files

kernel/sched: Optimize handling for suspend(_current)



k_thread_suspend() is an async API intended to stop any thread in any
state from any context.  Some apps just want to use it to "suspend
myself", which is a much (!) simpler operation.  Detect that specific
usage as a performance case.

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