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
commit a5d8461d74

View file

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