kernel: Do not mark thread as queued in k_yield()

SMP does not need to mark the current thread as queued in
k_yield() as that will naturally get done in do_swap().

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
This commit is contained in:
Peter Mitsis 2025-01-23 15:33:16 -08:00 committed by Benjamin Cabé
parent 93aae03597
commit bfe0b74aad

View File

@ -1048,9 +1048,6 @@ void z_impl_k_yield(void)
k_spinlock_key_t key = k_spin_lock(&_sched_spinlock);
#ifdef CONFIG_SMP
z_mark_thread_as_queued(_current);
#endif
runq_yield();
update_cache(1);