From 217f7a2f32968bf128ee0acc0c73a6b3d52f43cb Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Mon, 21 Apr 2014 17:04:02 -0400 Subject: [PATCH] ck_swlock: Load spin on write bit. --- include/ck_swlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ck_swlock.h b/include/ck_swlock.h index 402bde5..7c90ce6 100644 --- a/include/ck_swlock.h +++ b/include/ck_swlock.h @@ -130,7 +130,7 @@ ck_swlock_write_latch(ck_swlock_t *rw) CK_SWLOCK_WRITER_MASK) == false) { do { ck_pr_stall(); - } while (ck_pr_load_32(&rw->value) != 0); + } while (ck_pr_load_32(&rw->value) != CK_SWLOCK_WRITER_BIT); } ck_pr_fence_acquire();