kernel: remove comment in k_thread_abort()
z_reschedule_unlocked() is a no-op if the caller is cooperative, because the logic that maintains the ready queue ensures that the co-op thread is always at the front unless some special handling is done like in k_yield(), which does not happen here. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
79ed6a7e53
commit
60be4eb653
1 changed files with 0 additions and 8 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue