Skip to content
Commit 5879d2d6 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Carles Cufí
Browse files

sched: minor time slicing cleanup



Make sliceable() the actual condition for a sliceable thread. Avoid
creating a slice timeout for non sliceable threads. Always reset
slice_expired even if the next thread is not sliceable. Fold
slice_expired_locked() into z_time_slice() to avoid the hidden
unlock/lock. Change `curr` to `thread` as this is not necessarily
the current thread (yet) being set. Make variables static.

Signed-off-by: default avatarNicolas Pitre <npitre@baylibre.com>
parent 94ae33c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment