Patchwork [v4,6/6] qemu_calculate_timeout: increase minimum timeout to 1h

login
register
mail settings
Submitter Stefano Stabellini
Date Jan. 31, 2012, 4:12 p.m.
Message ID <1328026374-12803-6-git-send-email-stefano.stabellini@eu.citrix.com>
Download mbox | patch
Permalink /patch/138802/
State New
Headers show

Comments

Stefano Stabellini - Jan. 31, 2012, 4:12 p.m.
There is no reason why the minimum timeout should be 1sec, it could
easily be 1h and we would save lots of cpu cycles.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
---
 qemu-timer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/qemu-timer.c b/qemu-timer.c
index de20852..84b970e 100644
--- a/qemu-timer.c
+++ b/qemu-timer.c
@@ -823,6 +823,6 @@  fail:
 
 int qemu_calculate_timeout(void)
 {
-    return 1000;
+    return 1000*60*60;
 }