diff options
author | Jamie Iles <quic_jiles@quicinc.com> | 2023-04-27 03:09:24 +0100 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-05-11 09:53:41 +0100 |
commit | 370ed600296982a0248b091915c8e8893508d8a3 (patch) | |
tree | 62fb415ac26083490ed6fe112ffe904662211e5d /cpus-common.c | |
parent | eb0153efa6fa58b2c9d891b17766dbedc10e31b5 (diff) | |
download | qemu-370ed600296982a0248b091915c8e8893508d8a3.zip qemu-370ed600296982a0248b091915c8e8893508d8a3.tar.gz qemu-370ed600296982a0248b091915c8e8893508d8a3.tar.bz2 |
cpu: expose qemu_cpu_list_lock for lock-guard use
Expose qemu_cpu_list_lock globally so that we can use
WITH_QEMU_LOCK_GUARD and QEMU_LOCK_GUARD to simplify a few code paths
now and in future.
Signed-off-by: Jamie Iles <quic_jiles@quicinc.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230427020925.51003-2-quic_jiles@quicinc.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'cpus-common.c')
-rw-r--r-- | cpus-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpus-common.c b/cpus-common.c index a53716d..45c745e 100644 --- a/cpus-common.c +++ b/cpus-common.c @@ -25,7 +25,7 @@ #include "qemu/lockable.h" #include "trace/trace-root.h" -static QemuMutex qemu_cpu_list_lock; +QemuMutex qemu_cpu_list_lock; static QemuCond exclusive_cond; static QemuCond exclusive_resume; static QemuCond qemu_work_cond; |