diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2009-08-03 10:56:01 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-10 13:05:31 -0500 |
commit | 2430ffe4c855d782b157fafd0cd561d7c1561c2f (patch) | |
tree | 5cb08279411401e9de387d409eb6422cc0d47a42 /vl.c | |
parent | 1fc624122fb923c7fc4c1f426541d953e7df13c9 (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 <stefano.stabellini@eu.citrix.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -992,7 +992,7 @@ int qemu_timer_pending(QEMUTimer *ts) return 0; } -static inline int qemu_timer_expired(QEMUTimer *timer_head, int64_t current_time) +int qemu_timer_expired(QEMUTimer *timer_head, int64_t current_time) { if (!timer_head) return 0; |