Commit 2ad1a4377c94cf0c8248c96b1407b80891dd21b7

Authored by aliguori
1 parent b643146d

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
Showing 1 changed file with 2 additions and 9 deletions
... ... @@ -2510,13 +2510,6 @@ static void dumb_resize(DisplayState *ds, int w, int h)
2510 2510 {
2511 2511 }
2512 2512  
2513   -static void dumb_refresh(DisplayState *ds)
2514   -{
2515   -#if defined(CONFIG_SDL)
2516   - vga_hw_update();
2517   -#endif
2518   -}
2519   -
2520 2513 static void dumb_display_init(DisplayState *ds)
2521 2514 {
2522 2515 ds->data = NULL;
... ... @@ -2524,8 +2517,8 @@ static void dumb_display_init(DisplayState *ds)
2524 2517 ds->depth = 0;
2525 2518 ds->dpy_update = dumb_update;
2526 2519 ds->dpy_resize = dumb_resize;
2527   - ds->dpy_refresh = dumb_refresh;
2528   - ds->gui_timer_interval = 500;
  2520 + ds->dpy_refresh = NULL;
  2521 + ds->gui_timer_interval = 0;
2529 2522 ds->idle = 1;
2530 2523 }
2531 2524  
... ...