Files
zephyr/kernel
James Harris 6543e06914 kernel: sched: avoid unnecessary lock in z_impl_k_yield
`z_impl_k_yield` unlocked sched_spinlock, only to lock it again
immediately, do a little bit more work, then unlock it again.
This causes performance issues on SMP, where `sched_spinlock`
is often fairly highly contended and cores often end up spinning
for quite a while waiting to retake the lock in `z_swap_unlocked`.

Instead directly pass the spinlock key to `z_swap` and avoid the
extra lock+unlock.

Signed-off-by: James Harris <james.harris@intel.com>
2021-03-02 14:35:21 -05:00
..
2020-11-27 20:08:14 -05:00
2020-12-08 13:21:26 -05:00
2020-12-07 21:50:14 -05:00
2021-02-04 14:00:36 -05:00
2020-09-23 13:21:07 -05:00
2020-12-07 21:50:14 -05:00
2021-01-15 14:51:20 +01:00