kernel/stack: Spinlockify
One lock per stack. Straightforward synchronization. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
parent
9eeb6b8779
commit
f0933d0ded
2 changed files with 12 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue