Skip to content

Commit

Permalink
accel/tcg: Rename tcg_cpus_destroy() -> tcg_cpu_destroy()
Browse files Browse the repository at this point in the history
tcg_cpus_destroy() operates on a single vCPU, rename it
as 'tcg_cpu_destroy'.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Anton Johansson <anjo@rev.ng>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240124101639.30056-3-philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
philmd authored and rth7680 committed Jan 29, 2024
1 parent 29c0e68 commit cca2f62
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion accel/tcg/tcg-accel-ops-mttcg.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ static void *mttcg_cpu_thread_fn(void *arg)
qemu_wait_io_event(cpu);
} while (!cpu->unplug || cpu_can_run(cpu));

tcg_cpus_destroy(cpu);
tcg_cpu_destroy(cpu);
bql_unlock();
rcu_remove_force_rcu_notifier(&force_rcu.notifier);
rcu_unregister_thread();
Expand Down
2 changes: 1 addition & 1 deletion accel/tcg/tcg-accel-ops-rr.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static void rr_deal_with_unplugged_cpus(void)

CPU_FOREACH(cpu) {
if (cpu->unplug && !cpu_can_run(cpu)) {
tcg_cpus_destroy(cpu);
tcg_cpu_destroy(cpu);
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion accel/tcg/tcg-accel-ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void tcg_cpu_init_cflags(CPUState *cpu, bool parallel)
cpu->tcg_cflags |= cflags;
}

void tcg_cpus_destroy(CPUState *cpu)
void tcg_cpu_destroy(CPUState *cpu)
{
cpu_thread_signal_destroyed(cpu);
}
Expand Down
2 changes: 1 addition & 1 deletion accel/tcg/tcg-accel-ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "sysemu/cpus.h"

void tcg_cpus_destroy(CPUState *cpu);
void tcg_cpu_destroy(CPUState *cpu);
int tcg_cpus_exec(CPUState *cpu);
void tcg_handle_interrupt(CPUState *cpu, int mask);
void tcg_cpu_init_cflags(CPUState *cpu, bool parallel);
Expand Down

0 comments on commit cca2f62

Please sign in to comment.