Revision ab33fcda cpus.c
b/cpus.c | ||
---|---|---|
155 | 155 |
return true; |
156 | 156 |
} |
157 | 157 |
|
158 |
static bool all_cpu_threads_idle(void)
|
|
158 |
bool all_cpu_threads_idle(void) |
|
159 | 159 |
{ |
160 | 160 |
CPUState *env; |
161 | 161 |
|
... | ... | |
739 | 739 |
CPUState *env; |
740 | 740 |
|
741 | 741 |
while (all_cpu_threads_idle()) { |
742 |
/* Start accounting real time to the virtual clock if the CPUs |
|
743 |
are idle. */ |
|
744 |
qemu_clock_warp(vm_clock); |
|
742 | 745 |
qemu_cond_wait(tcg_halt_cond, &qemu_global_mutex); |
743 | 746 |
} |
744 | 747 |
|
... | ... | |
1073 | 1076 |
{ |
1074 | 1077 |
int r; |
1075 | 1078 |
|
1079 |
/* Account partial waits to the vm_clock. */ |
|
1080 |
qemu_clock_warp(vm_clock); |
|
1081 |
|
|
1076 | 1082 |
if (next_cpu == NULL) { |
1077 | 1083 |
next_cpu = first_cpu; |
1078 | 1084 |
} |
Also available in: Unified diff