diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-01-20 12:05:22 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2012-01-27 05:29:56 +0000 |
commit | 36945d95d249eda5536bf1683f0bee1a358c7642 (patch) | |
tree | d8da10ac991fe26418e72a53fc8c0011b8006e5a | |
parent | 331636431af32ece373f4b1fb7c3ae9d0615e2a6 (diff) | |
download | qemu-36945d95d249eda5536bf1683f0bee1a358c7642.zip qemu-36945d95d249eda5536bf1683f0bee1a358c7642.tar.gz qemu-36945d95d249eda5536bf1683f0bee1a358c7642.tar.bz2 |
remove #if 0 code for timers
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-rw-r--r-- | qemu-timer.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/qemu-timer.c b/qemu-timer.c index cd026c6..a22f27e 100644 --- a/qemu-timer.c +++ b/qemu-timer.c @@ -494,35 +494,6 @@ static void host_alarm_handler(int host_signum) if (!t) return; -#if 0 -#define DISP_FREQ 1000 - { - static int64_t delta_min = INT64_MAX; - static int64_t delta_max, delta_cum, last_clock, delta, ti; - static int count; - ti = qemu_get_clock_ns(vm_clock); - if (last_clock != 0) { - delta = ti - last_clock; - if (delta < delta_min) - delta_min = delta; - if (delta > delta_max) - delta_max = delta; - delta_cum += delta; - if (++count == DISP_FREQ) { - printf("timer: min=%" PRId64 " us max=%" PRId64 " us avg=%" PRId64 " us avg_freq=%0.3f Hz\n", - muldiv64(delta_min, 1000000, get_ticks_per_sec()), - muldiv64(delta_max, 1000000, get_ticks_per_sec()), - muldiv64(delta_cum, 1000000 / DISP_FREQ, get_ticks_per_sec()), - (double)get_ticks_per_sec() / ((double)delta_cum / DISP_FREQ)); - count = 0; - delta_min = INT64_MAX; - delta_max = 0; - delta_cum = 0; - } - } - last_clock = ti; - } -#endif if (alarm_has_dynticks(t) || qemu_next_alarm_deadline () <= 0) { t->expired = alarm_has_dynticks(t); |