kernel: move volatile from k_thread.prio to k_thread.sched_locked

When prio and sched_locked were moved into a struct together to create a
union with the combined preempt field, the volatile qualifier moved from
sched_locked to prio by mistake.

Change-Id: I5a8e01324f14e77e3d7162c12515471826023633
Signed-off-by: Benjamin Walsh <walsh.benj@gmail.com>
This commit is contained in:
Benjamin Walsh 2017-01-22 11:13:36 -05:00 committed by Anas Nashif
parent 12215b4185
commit a5d8461d74
1 changed files with 4 additions and 4 deletions

View File

@ -103,11 +103,11 @@ struct _thread_base {
union {
struct {
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
uint8_t sched_locked;
volatile int8_t prio;
volatile uint8_t sched_locked;
int8_t prio;
#else /* LITTLE and PDP */
volatile int8_t prio;
uint8_t sched_locked;
int8_t prio;
volatile uint8_t sched_locked;
#endif
};
uint16_t preempt;