[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v8 05/74] cpu: move run_on_cpu to cpus-common
From: |
Robert Foley |
Subject: |
[PATCH v8 05/74] cpu: move run_on_cpu to cpus-common |
Date: |
Thu, 26 Mar 2020 15:30:47 -0400 |
From: "Emilio G. Cota" <address@hidden>
We don't pass a pointer to qemu_global_mutex anymore.
Reviewed-by: Richard Henderson <address@hidden>
Reviewed-by: Alex Bennée <address@hidden>
Signed-off-by: Emilio G. Cota <address@hidden>
Signed-off-by: Robert Foley <address@hidden>
---
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 9031c31005..bf5794cc17 100644
--- a/cpus-common.c
+++ b/cpus-common.c
@@ -119,7 +119,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 e1f3327bbc..ff8f37cf88 100644
--- a/cpus.c
+++ b/cpus.c
@@ -1189,11 +1189,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 9c3ec715e2..9c6a426c35 100644
--- a/include/hw/core/cpu.h
+++ b/include/hw/core/cpu.h
@@ -766,16 +766,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 v8 00/74] per-CPU locks, Robert Foley, 2020/03/26
- [PATCH v8 01/74] cpu: convert queued work to a QSIMPLEQ, Robert Foley, 2020/03/26
- [PATCH v8 02/74] cpu: rename cpu->work_mutex to cpu->lock, Robert Foley, 2020/03/26
- [PATCH v8 03/74] cpu: introduce cpu_mutex_lock/unlock, Robert Foley, 2020/03/26
- [PATCH v8 05/74] cpu: move run_on_cpu to cpus-common,
Robert Foley <=
- [PATCH v8 04/74] cpu: make qemu_work_cond per-cpu, Robert Foley, 2020/03/26
- [PATCH v8 06/74] cpu: introduce process_queued_cpu_work_locked, Robert Foley, 2020/03/26
- [PATCH v8 08/74] tcg-runtime: define helper_cpu_halted_set, Robert Foley, 2020/03/26
- [PATCH v8 09/74] ppc: convert to helper_cpu_halted_set, Robert Foley, 2020/03/26
- [PATCH v8 07/74] cpu: make per-CPU locks an alias of the BQL in TCG rr mode, Robert Foley, 2020/03/26
- [PATCH v8 10/74] cris: convert to helper_cpu_halted_set, Robert Foley, 2020/03/26
- [PATCH v8 11/74] hppa: convert to helper_cpu_halted_set, Robert Foley, 2020/03/26
- [PATCH v8 12/74] m68k: convert to helper_cpu_halted_set, Robert Foley, 2020/03/26
- [PATCH v8 13/74] alpha: convert to helper_cpu_halted_set, Robert Foley, 2020/03/26
- [PATCH v8 14/74] microblaze: convert to helper_cpu_halted_set, Robert Foley, 2020/03/26