spinlocks should be volatile.

This commit is contained in:
Gregory Nutt 2016-11-17 10:04:22 -06:00
parent 2c314464a8
commit bb19f1b499

View File

@ -55,8 +55,8 @@
* Private Data
****************************************************************************/
static spinlock_t g_cpu_wait[CONFIG_SMP_NCPUS];
static spinlock_t g_cpu_paused[CONFIG_SMP_NCPUS];
static volatile spinlock_t g_cpu_wait[CONFIG_SMP_NCPUS];
static volatile spinlock_t g_cpu_paused[CONFIG_SMP_NCPUS];
/****************************************************************************
* Public Functions