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:
Benjamin Walsh 2016-12-21 14:36:43 -05:00 committed by Andrew Boie
commit 04ed860c68
3 changed files with 8 additions and 8 deletions

View file

@ -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 */