aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sparc/spinlock_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-sparc/spinlock_types.h')
-rw-r--r--include/asm-sparc/spinlock_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-sparc/spinlock_types.h b/include/asm-sparc/spinlock_types.h
index 0a0fb116c4ec..37cbe01c585b 100644
--- a/include/asm-sparc/spinlock_types.h
+++ b/include/asm-sparc/spinlock_types.h
@@ -6,7 +6,7 @@
#endif
typedef struct {
- unsigned char lock;
+ volatile unsigned char lock;
} raw_spinlock_t;
#define __RAW_SPIN_LOCK_UNLOCKED { 0 }