aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/queuelock.h
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@swan.cs.unc.edu>2007-02-20 12:30:23 -0500
committerBjoern Brandenburg <bbb@swan.cs.unc.edu>2007-02-20 12:30:23 -0500
commitb1b47f277305060c7da17da927819343d54dab29 (patch)
treef7f5c2500d0485a70ec57e24a2f1b32c631a068d /include/linux/queuelock.h
parent462092b802ee17a756f9db1f6f86b2832b58c968 (diff)
Mark spin variable as volatile.
Force gcc to actually spin.
Diffstat (limited to 'include/linux/queuelock.h')
-rw-r--r--include/linux/queuelock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/queuelock.h b/include/linux/queuelock.h
index 5ed74899da..236a2805bc 100644
--- a/include/linux/queuelock.h
+++ b/include/linux/queuelock.h
@@ -26,7 +26,7 @@ typedef struct {
26 that they are cache local 26 that they are cache local
27 */ 27 */
28 union { 28 union {
29 enum { 29 volatile enum {
30 MUST_WAIT, 30 MUST_WAIT,
31 HAS_LOCK 31 HAS_LOCK
32 } val; 32 } val;