diff options
author | Bjoern Brandenburg <bbb@swan.cs.unc.edu> | 2007-02-20 12:30:23 -0500 |
---|---|---|
committer | Bjoern Brandenburg <bbb@swan.cs.unc.edu> | 2007-02-20 12:30:23 -0500 |
commit | b1b47f277305060c7da17da927819343d54dab29 (patch) | |
tree | f7f5c2500d0485a70ec57e24a2f1b32c631a068d /include/linux/queuelock.h | |
parent | 462092b802ee17a756f9db1f6f86b2832b58c968 (diff) |
Mark spin variable as volatile.
Force gcc to actually spin.
Diffstat (limited to 'include/linux/queuelock.h')
-rw-r--r-- | include/linux/queuelock.h | 2 |
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; |