diff options
author | John M. Calandrino <jmc@jupiter-cs.cs.unc.edu> | 2007-05-09 16:44:29 -0400 |
---|---|---|
committer | John M. Calandrino <jmc@jupiter-cs.cs.unc.edu> | 2007-05-09 16:44:29 -0400 |
commit | a0615764712672e852ee44aabfaaaa0911f4a7c3 (patch) | |
tree | 12300d760b5ed76d56689edab3c8417cb8abddeb /include/linux/queuelock.h | |
parent | d1f5f5e7f672ff07fbe2d5051c7360f8a89f7ddc (diff) |
Various changes that I don't want to lose, but the code does not work.
Diffstat (limited to 'include/linux/queuelock.h')
-rw-r--r-- | include/linux/queuelock.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/queuelock.h b/include/linux/queuelock.h index 6dac31c358..3fad15deab 100644 --- a/include/linux/queuelock.h +++ b/include/linux/queuelock.h | |||
@@ -71,7 +71,10 @@ static inline void queue_lock(queuelock_t *lock) | |||
71 | /* range limit*/ | 71 | /* range limit*/ |
72 | lock->spin_slot[me] %= NR_CPUS; | 72 | lock->spin_slot[me] %= NR_CPUS; |
73 | /* spin until you acquire the lock */ | 73 | /* spin until you acquire the lock */ |
74 | while (lock->slots[lock->spin_slot[me]].val == MUST_WAIT); | 74 | while (lock->slots[lock->spin_slot[me]].val == MUST_WAIT) |
75 | // rep_nop(); | ||
76 | ; | ||
77 | |||
75 | /* reset the lock */ | 78 | /* reset the lock */ |
76 | lock->slots[lock->spin_slot[me]].val = MUST_WAIT; | 79 | lock->slots[lock->spin_slot[me]].val = MUST_WAIT; |
77 | barrier(); | 80 | barrier(); |