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:
parent
93aae03597
commit
bfe0b74aad
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user