diff options
authorStefano Stabellini <>2009-08-03 10:56:01 +0100
committerAnthony Liguori <>2009-08-10 13:05:31 -0500
commit2430ffe4c855d782b157fafd0cd561d7c1561c2f (patch)
tree5cb08279411401e9de387d409eb6422cc0d47a42 /qemu-timer.h
parentsingle vnc server surface (diff)
variable timer intervals
This patch introduces dynamic timer intervals: we slow down the refresh rate when there in no much activity but we get back to a fast refresh rate when the activity resume. Please note that qemu_timer_expired is not an inline function any more because I needed to call it from vnc.c however I don't think this change should have any serious consequence. Signed-off-by: Stefano Stabellini <> Signed-off-by: Anthony Liguori <> Message-Id:
Diffstat (limited to 'qemu-timer.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-timer.h b/qemu-timer.h
index 3f8880ddf..8f6946763 100644
--- a/qemu-timer.h
+++ b/qemu-timer.h
@@ -24,6 +24,7 @@ void qemu_free_timer(QEMUTimer *ts);
void qemu_del_timer(QEMUTimer *ts);
void qemu_mod_timer(QEMUTimer *ts, int64_t expire_time);
int qemu_timer_pending(QEMUTimer *ts);
+int qemu_timer_expired(QEMUTimer *timer_head, int64_t current_time);
extern int64_t ticks_per_sec;