aboutsummaryrefslogtreecommitdiff
path: root/cpus.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2010-06-25 16:56:55 +0200
committerAurelien Jarno <aurelien@aurel32.net>2010-07-22 05:52:09 +0200
commit472fb0c479cd98e245cce67cb525b1f15d6c1679 (patch)
treeaa0681a1d8df5a407768deee9e6086a288ec75d9 /cpus.c
parent345f4426a983b8a5d3fdcb83de1d74e806d4aa14 (diff)
Rename tcg_cpu_exec and tcg_has_work
These functions are also used for kvm under !CONFIG_IOTHREAD, having 'tcg' in their name is just misleading. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'cpus.c')
-rw-r--r--cpus.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpus.c b/cpus.c
index 7f66eda54e..03ebcb0c61 100644
--- a/cpus.c
+++ b/cpus.c
@@ -131,7 +131,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;
@@ -406,7 +406,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);
@@ -507,7 +507,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();
}
@@ -768,7 +768,7 @@ static int qemu_cpu_exec(CPUState *env)
return ret;
}
-bool tcg_cpu_exec(void)
+bool cpu_exec_all(void)
{
int ret = 0;
@@ -794,7 +794,7 @@ bool tcg_cpu_exec(void)
}
}
exit_request = 0;
- return tcg_has_work();
+ return any_cpu_has_work();
}
void set_numa_modes(void)