kernel/stack: Spinlockify

One lock per stack.  Straightforward synchronization.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
Andy Ross 2018-07-26 10:23:02 -07:00 committed by Anas Nashif
commit f0933d0ded
2 changed files with 12 additions and 11 deletions

View file

@ -2370,6 +2370,7 @@ struct k_lifo {
struct k_stack {
_wait_q_t wait_q;
struct k_spinlock lock;
u32_t *base, *next, *top;
_OBJECT_TRACING_NEXT_PTR(k_stack)