[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 7/8] Rename tcg_cpu_exec and tcg_has_work
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] [PATCH 7/8] Rename tcg_cpu_exec and tcg_has_work |
Date: |
Fri, 25 Jun 2010 16:56:55 +0200 |
These functions are also used for kvm under !CONFIG_IOTHREAD, having
'tcg' in their name is just misleading.
Signed-off-by: Jan Kiszka <address@hidden>
---
cpus.c | 10 +++++-----
cpus.h | 2 +-
vl.c | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/cpus.c b/cpus.c
index 2ce839d..c024421 100644
--- a/cpus.c
+++ b/cpus.c
@@ -130,7 +130,7 @@ static int cpu_has_work(CPUState *env)
return 0;
}
-static int tcg_has_work(void)
+static int any_cpu_has_work(void)
{
CPUState *env;
@@ -405,7 +405,7 @@ static void qemu_tcg_wait_io_event(void)
{
CPUState *env;
- while (!tcg_has_work())
+ while (!any_cpu_has_work())
qemu_cond_timedwait(tcg_halt_cond, &qemu_global_mutex, 1000);
qemu_mutex_unlock(&qemu_global_mutex);
@@ -506,7 +506,7 @@ static void *tcg_cpu_thread_fn(void *arg)
qemu_cond_timedwait(&qemu_system_cond, &qemu_global_mutex, 100);
while (1) {
- tcg_cpu_exec();
+ cpu_exec_all();
qemu_tcg_wait_io_event();
}
@@ -767,7 +767,7 @@ static int qemu_cpu_exec(CPUState *env)
return ret;
}
-bool tcg_cpu_exec(void)
+bool cpu_exec_all(void)
{
int ret = 0;
@@ -793,7 +793,7 @@ bool tcg_cpu_exec(void)
}
}
exit_request = 0;
- return tcg_has_work();
+ return any_cpu_has_work();
}
void set_numa_modes(void)
diff --git a/cpus.h b/cpus.h
index 774150a..af267ea 100644
--- a/cpus.h
+++ b/cpus.h
@@ -13,7 +13,7 @@ extern int smp_threads;
extern int debug_requested;
extern int vmstop_requested;
void vm_state_notify(int running, int reason);
-bool tcg_cpu_exec(void);
+bool cpu_exec_all(void);
void set_numa_modes(void);
void set_cpu_log(const char *optarg);
void list_cpus(FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
diff --git a/vl.c b/vl.c
index 920717a..0938656 100644
--- a/vl.c
+++ b/vl.c
@@ -1325,7 +1325,7 @@ static void main_loop(void)
int64_t ti;
#endif
#ifndef CONFIG_IOTHREAD
- nonblocking = tcg_cpu_exec();
+ nonblocking = cpu_exec_all();
#endif
#ifdef CONFIG_PROFILER
ti = profile_getclock();
--
1.7.1
- [Qemu-devel] [PATCH 0/8] Fix various IO-thread breakages, Jan Kiszka, 2010/06/25
- [Qemu-devel] [PATCH 6/8] Drop redundant global cur_cpu variable, Jan Kiszka, 2010/06/25
- [Qemu-devel] [PATCH 8/8] Rework debug exception processing for gdb use, Jan Kiszka, 2010/06/25
- [Qemu-devel] [PATCH 3/8] Init qemu_system_cond, Jan Kiszka, 2010/06/25
- [Qemu-devel] [PATCH 1/8] Introduce proper compiler barrier, Jan Kiszka, 2010/06/25
- [Qemu-devel] [PATCH 2/8] Fix cpu_unlink_tb race, Jan Kiszka, 2010/06/25
- [Qemu-devel] [PATCH 5/8] Fix qemu_wait_io_event processing in io-thread mode, Jan Kiszka, 2010/06/25
- [Qemu-devel] [PATCH 4/8] Fix cpu_exit for tcp_cpu_exec, Jan Kiszka, 2010/06/25
- [Qemu-devel] [PATCH 7/8] Rename tcg_cpu_exec and tcg_has_work,
Jan Kiszka <=
- [Qemu-devel] Re: [PATCH 0/8] Fix various IO-thread breakages, Paolo Bonzini, 2010/06/27
- [Qemu-devel] Re: [PATCH 0/8] Fix various IO-thread breakages, Marcelo Tosatti, 2010/06/28