Revision b319820d
b/vl.c | ||
---|---|---|
4388 | 4388 |
|
4389 | 4389 |
static int qemu_calculate_timeout(void) |
4390 | 4390 |
{ |
4391 |
#ifndef CONFIG_IOTHREAD |
|
4391 | 4392 |
int timeout; |
4392 | 4393 |
|
4393 | 4394 |
if (!vm_running) |
... | ... | |
4433 | 4434 |
} |
4434 | 4435 |
|
4435 | 4436 |
return timeout; |
4437 |
#else /* CONFIG_IOTHREAD */ |
|
4438 |
return 1000; |
|
4439 |
#endif |
|
4436 | 4440 |
} |
4437 | 4441 |
|
4438 | 4442 |
static int vm_can_run(void) |
... | ... | |
4468 | 4472 |
#ifdef CONFIG_PROFILER |
4469 | 4473 |
ti = profile_getclock(); |
4470 | 4474 |
#endif |
4471 |
#ifdef CONFIG_IOTHREAD |
|
4472 |
main_loop_wait(1000); |
|
4473 |
#else |
|
4474 | 4475 |
main_loop_wait(qemu_calculate_timeout()); |
4475 |
#endif |
|
4476 | 4476 |
#ifdef CONFIG_PROFILER |
4477 | 4477 |
dev_time += profile_getclock() - ti; |
4478 | 4478 |
#endif |
Also available in: Unified diff