[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v10 04/73] cpu: move run_on_cpu to cpus-common
From: |
Robert Foley |
Subject: |
[PATCH v10 04/73] cpu: move run_on_cpu to cpus-common |
Date: |
Wed, 17 Jun 2020 17:01:22 -0400 |
From: "Emilio G. Cota" <cota@braap.org>
We don't pass a pointer to qemu_global_mutex anymore.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Robert Foley <robert.foley@linaro.org>
---
cpus-common.c | 2 +-
cpus.c | 5 -----
include/hw/core/cpu.h | 10 ----------
3 files changed, 1 insertion(+), 16 deletions(-)
diff --git a/cpus-common.c b/cpus-common.c
index 57d9fc6ea1..b1069193c1 100644
--- a/cpus-common.c
+++ b/cpus-common.c
@@ -117,7 +117,7 @@ static void queue_work_on_cpu(CPUState *cpu, struct
qemu_work_item *wi)
cpu_mutex_unlock(cpu);
}
-void do_run_on_cpu(CPUState *cpu, run_on_cpu_func func, run_on_cpu_data data)
+void run_on_cpu(CPUState *cpu, run_on_cpu_func func, run_on_cpu_data data)
{
struct qemu_work_item wi;
bool has_bql = qemu_mutex_iothread_locked();
diff --git a/cpus.c b/cpus.c
index 035f41a997..8e54916169 100644
--- a/cpus.c
+++ b/cpus.c
@@ -1214,11 +1214,6 @@ void qemu_init_cpu_loop(void)
qemu_thread_get_self(&io_thread);
}
-void run_on_cpu(CPUState *cpu, run_on_cpu_func func, run_on_cpu_data data)
-{
- do_run_on_cpu(cpu, func, data);
-}
-
static void qemu_kvm_destroy_vcpu(CPUState *cpu)
{
if (kvm_destroy_vcpu(cpu) < 0) {
diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h
index ebff239ad3..e3f7ec06ff 100644
--- a/include/hw/core/cpu.h
+++ b/include/hw/core/cpu.h
@@ -771,16 +771,6 @@ void qemu_cpu_kick(CPUState *cpu);
*/
bool cpu_is_stopped(CPUState *cpu);
-/**
- * do_run_on_cpu:
- * @cpu: The vCPU to run on.
- * @func: The function to be executed.
- * @data: Data to pass to the function.
- *
- * Used internally in the implementation of run_on_cpu.
- */
-void do_run_on_cpu(CPUState *cpu, run_on_cpu_func func, run_on_cpu_data data);
-
/**
* run_on_cpu:
* @cpu: The vCPU to run on.
--
2.17.1
- [PATCH v10 00/73] per-CPU locks, Robert Foley, 2020/06/17
- [PATCH v10 01/73] cpu: rename cpu->work_mutex to cpu->lock, Robert Foley, 2020/06/17
- [PATCH v10 03/73] cpu: make qemu_work_cond per-cpu, Robert Foley, 2020/06/17
- [PATCH v10 02/73] cpu: introduce cpu_mutex_lock/unlock, Robert Foley, 2020/06/17
- [PATCH v10 04/73] cpu: move run_on_cpu to cpus-common,
Robert Foley <=
- [PATCH v10 06/73] cpu: make per-CPU locks an alias of the BQL in TCG rr mode, Robert Foley, 2020/06/17
- [PATCH v10 05/73] cpu: introduce process_queued_cpu_work_locked, Robert Foley, 2020/06/17
- [PATCH v10 10/73] hppa: convert to helper_cpu_halted_set, Robert Foley, 2020/06/17
- [PATCH v10 11/73] m68k: convert to helper_cpu_halted_set, Robert Foley, 2020/06/17
- [PATCH v10 07/73] tcg-runtime: define helper_cpu_halted_set, Robert Foley, 2020/06/17
- [PATCH v10 09/73] cris: convert to helper_cpu_halted_set, Robert Foley, 2020/06/17
- [PATCH v10 08/73] ppc: convert to helper_cpu_halted_set, Robert Foley, 2020/06/17
- [PATCH v10 14/73] cpu: define cpu_halted helpers, Robert Foley, 2020/06/17
- [PATCH v10 12/73] alpha: convert to helper_cpu_halted_set, Robert Foley, 2020/06/17
- [PATCH v10 15/73] tcg-runtime: convert to cpu_halted_set, Robert Foley, 2020/06/17