aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <freddy77@gmail.com>2011-09-22 11:26:15 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2011-09-23 10:55:32 -0500
commit74e26c179efa6eed821c2863b8a50c7b586432c4 (patch)
tree5a05abb3b7241a47078d818cbddf793bcec6a5a1
parent7e36b264ce524bc60b7b71dd45c05af767ceff2b (diff)
core: remove qemu_service_io
qemu_service_io was mainly an alias to qemu_notify_event, currently used only by PPC for timer hack, so call qemu_notify_event directly. Signed-off-by: Frediano Ziglio <freddy77@gmail.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--arch_init.c5
-rw-r--r--qemu-common.h3
-rw-r--r--qemu-tool.c4
-rw-r--r--target-ppc/kvm_ppc.c2
4 files changed, 1 insertions, 13 deletions
diff --git a/arch_init.c b/arch_init.c
index 9a5a0e31b3..a6c69c75a9 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -459,11 +459,6 @@ int ram_load(QEMUFile *f, void *opaque, int version_id)
return 0;
}
-void qemu_service_io(void)
-{
- qemu_notify_event();
-}
-
#ifdef HAS_AUDIO
struct soundhw {
const char *name;
diff --git a/qemu-common.h b/qemu-common.h
index 404c421a5d..5e87bdf2f2 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -276,9 +276,6 @@ void cpu_exec_init_all(void);
void cpu_save(QEMUFile *f, void *opaque);
int cpu_load(QEMUFile *f, void *opaque, int version_id);
-/* Force QEMU to stop what it's doing and service IO */
-void qemu_service_io(void);
-
/* Force QEMU to process pending events */
void qemu_notify_event(void);
diff --git a/qemu-tool.c b/qemu-tool.c
index eb89fe0c1b..e9f7fe1e1a 100644
--- a/qemu-tool.c
+++ b/qemu-tool.c
@@ -29,10 +29,6 @@ struct QEMUBH
void *opaque;
};
-void qemu_service_io(void)
-{
-}
-
Monitor *cur_mon;
int monitor_cur_is_qmp(void)
diff --git a/target-ppc/kvm_ppc.c b/target-ppc/kvm_ppc.c
index 867dc1d17d..c031fcb75a 100644
--- a/target-ppc/kvm_ppc.c
+++ b/target-ppc/kvm_ppc.c
@@ -88,7 +88,7 @@ void kvmppc_fdt_update(void *fdt)
static void kvmppc_timer_hack(void *opaque)
{
- qemu_service_io();
+ qemu_notify_event();
qemu_mod_timer(kvmppc_timer, qemu_get_clock_ns(vm_clock) + kvmppc_timer_rate);
}