diff --git a/kernel/include/kswap.h b/kernel/include/kswap.h index 9280a2fa44a8..03c4a991bb08 100644 --- a/kernel/include/kswap.h +++ b/kernel/include/kswap.h @@ -124,7 +124,6 @@ static ALWAYS_INLINE unsigned int do_swap(unsigned int key, z_sched_usage_switch(new_thread); #ifdef CONFIG_SMP - _current_cpu->swap_ok = 0; new_thread->base.cpu = arch_curr_cpu()->id; if (!is_spinlock) {