commit | 8e0f6a5936faa7c0bd48d5cc7d245f85cab22ddc | [log] [tgz] |
---|---|---|
author | Andrew Boie <andrew.p.boie@intel.com> | Sat Sep 05 11:50:18 2020 -0700 |
committer | Maureen Helm <maureen.helm@nxp.com> | Wed Sep 16 13:11:12 2020 -0500 |
tree | a9c8a4d9052daa67f524109cfc5009f432988cd5 | |
parent | 83d7770de47cb01f6c22c55cf93799b2d9ff1b7d [diff] |
sched: hold spinlock in z_time_slice() We are checking thread->base members like thread_state and prio and making decisions based on it, hold the sched_spinlock to avoid potential concurrency problems if these members are modified on another CPU or nested interrupt. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>