kernel: make _thread.sched_locked a non-atomic operator variable
Not needed, since only the thread itself can modifiy its own sched_locked count. Change-Id: I3d3d8be548d2b24ca14f51637cc58bda66f8b9ee Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
parent
c0f0dd9734
commit
04ed860c68
3 changed files with 8 additions and 8 deletions
|
@ -82,7 +82,7 @@ struct _thread_base {
|
|||
int prio;
|
||||
|
||||
/* scheduler lock count */
|
||||
atomic_t sched_locked;
|
||||
volatile uint32_t sched_locked;
|
||||
|
||||
/* data returned by APIs */
|
||||
void *swap_data;
|
||||
|
@ -136,7 +136,7 @@ typedef struct k_thread _thread_t;
|
|||
|
||||
struct _ready_q {
|
||||
|
||||
/* next thread to run if known, NULL otherwise */
|
||||
/* always contains next thread to run: cannot be NULL */
|
||||
struct k_thread *cache;
|
||||
|
||||
/* bitmap of priorities that contain at least one ready thread */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue