aboutsummaryrefslogtreecommitdiff
path: root/cpus.c
diff options
context:
space:
mode:
authorEmilio G. Cota <cota@braap.org>2016-06-08 14:55:20 -0400
committerRichard Henderson <rth@twiddle.net>2016-06-11 22:59:34 +0000
commitccdb3c1fc8865cf9142235b00e3a8fe3246f2a59 (patch)
treeebeea9367c34903e86fea644c1d2d7f5c2f134ab /cpus.c
parent911a4d2215b05267b16925503218f49d607c6b29 (diff)
downloadqemu-ccdb3c1fc8865cf9142235b00e3a8fe3246f2a59.zip
qemu-ccdb3c1fc8865cf9142235b00e3a8fe3246f2a59.tar.gz
qemu-ccdb3c1fc8865cf9142235b00e3a8fe3246f2a59.tar.bz2
seqlock: remove optional mutex
This option is unused; besides, it bloats the struct when not needed. Let's just let writers define their own locks elsewhere. 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-3-git-send-email-cota@braap.org> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'cpus.c')
-rw-r--r--cpus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpus.c b/cpus.c
index 326742f..1c92362 100644
--- a/cpus.c
+++ b/cpus.c
@@ -621,7 +621,7 @@ int cpu_throttle_get_percentage(void)
void cpu_ticks_init(void)
{
- seqlock_init(&timers_state.vm_clock_seqlock, NULL);
+ seqlock_init(&timers_state.vm_clock_seqlock);
vmstate_register(NULL, 0, &vmstate_timers, &timers_state);
throttle_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL_RT,
cpu_throttle_timer_tick, NULL);