summary refs log tree commit diff stats
path: root/include/qemu/seqlock.h
diff options
context:
space:
mode:
authorEmilio G. Cota <cota@braap.org>2016-06-08 14:55:21 -0400
committerRichard Henderson <rth@twiddle.net>2016-06-11 22:59:34 +0000
commit03719e44b6d6d559c506808e5b6c340feff867b8 (patch)
tree1c77dbc86773dd298c5683fe5b8070d1e0eb6fed /include/qemu/seqlock.h
parentccdb3c1fc8865cf9142235b00e3a8fe3246f2a59 (diff)
downloadfocaccia-qemu-03719e44b6d6d559c506808e5b6c340feff867b8.tar.gz
focaccia-qemu-03719e44b6d6d559c506808e5b6c340feff867b8.zip
seqlock: rename write_lock/unlock to write_begin/end
It is a more appropriate name, now that the mutex embedded
in the seqlock is gone.

Reviewed-by: Sergey Fedorov <sergey.fedorov@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Message-Id: <1465412133-3029-4-git-send-email-cota@braap.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'include/qemu/seqlock.h')
-rw-r--r--include/qemu/seqlock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/qemu/seqlock.h b/include/qemu/seqlock.h
index e6734823ec..4dfc055353 100644
--- a/include/qemu/seqlock.h
+++ b/include/qemu/seqlock.h
@@ -28,7 +28,7 @@ static inline void seqlock_init(QemuSeqLock *sl)
 }
 
 /* Lock out other writers and update the count.  */
-static inline void seqlock_write_lock(QemuSeqLock *sl)
+static inline void seqlock_write_begin(QemuSeqLock *sl)
 {
     ++sl->sequence;
 
@@ -36,7 +36,7 @@ static inline void seqlock_write_lock(QemuSeqLock *sl)
     smp_wmb();
 }
 
-static inline void seqlock_write_unlock(QemuSeqLock *sl)
+static inline void seqlock_write_end(QemuSeqLock *sl)
 {
     /* Write other fields before finalizing sequence.  */
     smp_wmb();