kernel/sched: only send IPI to abort thread if hardware supports it
Wrap arch_sched_ipi() call in z_thread_abort() with ifdef checking for hardware support of IPI. Fixes #32723 Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
This commit is contained in:
parent
e31547dc96
commit
d88ce65463
1 changed files with 3 additions and 0 deletions
|
@ -1497,7 +1497,10 @@ void z_thread_abort(struct k_thread *thread)
|
||||||
if (active) {
|
if (active) {
|
||||||
/* It's running somewhere else, flag and poke */
|
/* It's running somewhere else, flag and poke */
|
||||||
thread->base.thread_state |= _THREAD_ABORTING;
|
thread->base.thread_state |= _THREAD_ABORTING;
|
||||||
|
|
||||||
|
#ifdef CONFIG_SCHED_IPI_SUPPORTED
|
||||||
arch_sched_ipi();
|
arch_sched_ipi();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_aborting(thread) && thread != _current) {
|
if (is_aborting(thread) && thread != _current) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue