summaryrefslogtreecommitdiffstats
path: root/vl.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-31 20:34:40 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-31 20:34:40 +0000
commit2ad1a4377c94cf0c8248c96b1407b80891dd21b7 (patch)
treed0afdb014fba8386601c33c088c7a9148b62470c /vl.c
parentb643146d11bb24a0f0cc46985d33cfdec88842e9 (diff)
downloadhqemu-2ad1a4377c94cf0c8248c96b1407b80891dd21b7.zip
hqemu-2ad1a4377c94cf0c8248c96b1407b80891dd21b7.tar.gz
Remove dumb_refresh
It is safe not to set dpy_refresh and that's used to indicate that the display doesn't need updates. This saves us two wakeups per second. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5583 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/vl.c b/vl.c
index 4543b5d..ee93c73 100644
--- a/vl.c
+++ b/vl.c
@@ -2510,13 +2510,6 @@ static void dumb_resize(DisplayState *ds, int w, int h)
{
}
-static void dumb_refresh(DisplayState *ds)
-{
-#if defined(CONFIG_SDL)
- vga_hw_update();
-#endif
-}
-
static void dumb_display_init(DisplayState *ds)
{
ds->data = NULL;
@@ -2524,8 +2517,8 @@ static void dumb_display_init(DisplayState *ds)
ds->depth = 0;
ds->dpy_update = dumb_update;
ds->dpy_resize = dumb_resize;
- ds->dpy_refresh = dumb_refresh;
- ds->gui_timer_interval = 500;
+ ds->dpy_refresh = NULL;
+ ds->gui_timer_interval = 0;
ds->idle = 1;
}
OpenPOWER on IntegriCloud