]> git.proxmox.com Git - mirror_qemu.git/commit - hw/core/cpu.c
cpu: convert queued work to a QSIMPLEQ
authorEmilio G. Cota <cota@braap.org>
Fri, 12 Jun 2020 19:02:24 +0000 (20:02 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 16 Jun 2020 13:49:05 +0000 (14:49 +0100)
commit0c0fcc2052915c629daa2469bfae620da18b2394
tree6dc8bbff4b256c6706333ef6515a39a624e79a43
parent0aebab04b9289bd37017593b413ce7a762b54c55
cpu: convert queued work to a QSIMPLEQ

We convert queued work to a QSIMPLEQ, instead of
open-coding it.

While at it, make sure that all accesses to the list are
performed while holding the list's lock.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Robert Foley <robert.foley@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200609200738.445-3-robert.foley@linaro.org>
Message-Id: <20200612190237.30436-6-alex.bennee@linaro.org>
cpus-common.c
cpus.c
hw/core/cpu.c
include/hw/core/cpu.h