diff --git a/kernel/thread_abort.c b/kernel/thread_abort.c index 152962ebf38..6500827a158 100644 --- a/kernel/thread_abort.c +++ b/kernel/thread_abort.c @@ -42,14 +42,6 @@ void z_impl_k_thread_abort(k_tid_t thread) z_swap(&lock, k_spin_lock(&lock)); } else { - /* Really, there's no good reason for this to be a - * scheduling point if we aren't aborting _current (by - * definition, no higher priority thread is runnable, - * because we're running!). But it always has been - * and is thus part of our API, and we have tests that - * rely on k_thread_abort() scheduling out of - * cooperative threads. - */ z_reschedule_unlocked(); } }