Commit 172061a0 authored by Paolo Bonzini's avatar Paolo Bonzini

main-loop: unify qemu_init_main_loop between QEMU and tools

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 744ca8e3
......@@ -199,10 +199,13 @@ static int qemu_signal_init(void)
}
#endif
int main_loop_init(void)
int qemu_init_main_loop(void)
{
int ret;
init_clocks();
init_timer_alarm();
qemu_mutex_lock_iothread();
ret = qemu_signal_init();
if (ret) {
......
......@@ -42,16 +42,6 @@
*/
int qemu_init_main_loop(void);
/**
* main_loop_init: Initializes main loop
*
* Internal (but shared for compatibility reasons) initialization routine
* for the main loop. This should not be used by applications directly,
* use qemu_init_main_loop() instead.
*
*/
int main_loop_init(void);
/**
* main_loop_wait: Run one iteration of the main loop.
*
......
......@@ -92,13 +92,6 @@ void qemu_clock_warp(QEMUClock *clock)
{
}
int qemu_init_main_loop(void)
{
init_clocks();
init_timer_alarm();
return main_loop_init();
}
void slirp_update_timeout(uint32_t *timeout)
{
}
......
......@@ -2357,11 +2357,6 @@ static void free_and_trace(gpointer mem)
free(mem);
}
int qemu_init_main_loop(void)
{
return main_loop_init();
}
int main(int argc, char **argv, char **envp)
{
int i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment