Skip to content

Commit bfe0b74

Browse files
peter-mitsiskartben
authored andcommitted
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 <[email protected]>
1 parent 93aae03 commit bfe0b74

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

kernel/sched.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,9 +1048,6 @@ void z_impl_k_yield(void)
10481048

10491049
k_spinlock_key_t key = k_spin_lock(&_sched_spinlock);
10501050

1051-
#ifdef CONFIG_SMP
1052-
z_mark_thread_as_queued(_current);
1053-
#endif
10541051
runq_yield();
10551052

10561053
update_cache(1);

0 commit comments

Comments
 (0)