summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEmilio G. Cota2016-06-08 20:55:21 +0200
committerRichard Henderson2016-06-12 00:59:34 +0200
commit03719e44b6d6d559c506808e5b6c340feff867b8 (patch)
tree1c77dbc86773dd298c5683fe5b8070d1e0eb6fed /include
parentseqlock: remove optional mutex (diff)
downloadqemu-03719e44b6d6d559c506808e5b6c340feff867b8.tar.gz
qemu-03719e44b6d6d559c506808e5b6c340feff867b8.tar.xz
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')
-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();