diff --git a/kernel/sched.c b/kernel/sched.c index 56ee09e04da..3ee40babfb2 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -122,7 +122,7 @@ static int should_preempt(struct k_thread *th, int preempt_ok) } /* Or if we're pended/suspended/dummy (duh) */ - if (!_current || _is_thread_prevented_from_running(_current)) { + if (!_current || !_is_thread_ready(_current)) { return 1; }