diff options
author | Emilio G. Cota <cota@braap.org> | 2016-06-08 14:55:21 -0400 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2016-06-11 22:59:34 +0000 |
commit | 03719e44b6d6d559c506808e5b6c340feff867b8 (patch) | |
tree | 1c77dbc86773dd298c5683fe5b8070d1e0eb6fed /include/qemu/seqlock.h | |
parent | ccdb3c1fc8865cf9142235b00e3a8fe3246f2a59 (diff) | |
download | qemu-03719e44b6d6d559c506808e5b6c340feff867b8.zip qemu-03719e44b6d6d559c506808e5b6c340feff867b8.tar.gz qemu-03719e44b6d6d559c506808e5b6c340feff867b8.tar.bz2 |
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/qemu/seqlock.h b/include/qemu/seqlock.h index e673482..4dfc055 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(); |