commit | 5879d2d6c174509c3d569b05eddab68c31d3634d | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <npitre@baylibre.com> | Thu Mar 09 22:45:18 2023 -0500 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Thu Mar 16 09:16:59 2023 +0100 |
tree | 844a13c53f5ac5b7a850c60edba377b920337280 | |
parent | 94ae33c20a7374cc09f338b3e6928de88779b435 [diff] |
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: Nicolas Pitre <npitre@baylibre.com>