summaryrefslogtreecommitdiffstats
path: root/include/qemu/seqlock.h
diff options
context:
space:
mode:
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();