mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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:
This commit is contained in:
parent
1fc624122f
commit
2430ffe4c8
4 changed files with 33 additions and 10 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue