diff options
Diffstat (limited to 'arch/x86/include/asm/rwsem.h')
-rw-r--r-- | arch/x86/include/asm/rwsem.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/include/asm/rwsem.h b/arch/x86/include/asm/rwsem.h index 606ede126972..5bf5e04e497f 100644 --- a/arch/x86/include/asm/rwsem.h +++ b/arch/x86/include/asm/rwsem.h | |||
@@ -216,9 +216,8 @@ static inline void __up_write(struct rw_semaphore *sem) | |||
216 | rwsem_count_t tmp; | 216 | rwsem_count_t tmp; |
217 | asm volatile("# beginning __up_write\n\t" | 217 | asm volatile("# beginning __up_write\n\t" |
218 | LOCK_PREFIX " xadd %1,(%2)\n\t" | 218 | LOCK_PREFIX " xadd %1,(%2)\n\t" |
219 | /* tries to transition | 219 | /* subtracts 0xffff0001, returns the old value */ |
220 | 0xffff0001 -> 0x00000000 */ | 220 | " jns 1f\n\t" |
221 | " jz 1f\n" | ||
222 | " call call_rwsem_wake\n" | 221 | " call call_rwsem_wake\n" |
223 | "1:\n\t" | 222 | "1:\n\t" |
224 | "# ending __up_write\n" | 223 | "# ending __up_write\n" |