From: Ian Jackson Date: Thu, 29 May 2008 14:45:21 +0000 (+0100) Subject: Add ds->idle in console.h and sdl.c X-Git-Tag: xen-3.3.0-rc1~160 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=72ef919a26cdd738d03a07bfc61f64ab84b9a192;p=qemu-xen-4.0-testing.git Add ds->idle in console.h and sdl.c A few lost fragments of xen-unstable changeset 17607:3b20e543b52d40f76525a7e918fa347af2de00fe pvfb/ioemu: transmit refresh interval advice from backend to frontend which permits the frontend to avoid useless polls. Signed-off-by: Samuel Thibault --- diff --git a/console.h b/console.h index 9e6ddfcf..55b0d5ed 100644 --- a/console.h +++ b/console.h @@ -71,6 +71,7 @@ struct DisplayState { int height; void *opaque; uint64_t gui_timer_interval; + int idle; int shared_buf; diff --git a/sdl.c b/sdl.c index 45596fa6..7eb56afb 100644 --- a/sdl.c +++ b/sdl.c @@ -693,9 +693,11 @@ static void sdl_refresh(DisplayState *ds) if (ev->active.gain) { /* Back to default interval */ ds->gui_timer_interval = 0; + ds->idle = 0; } else { /* Sleeping interval */ ds->gui_timer_interval = 500; + ds->idle = 1; } } break;