Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kw0hf-0002iV-VH for qemu-devel@nongnu.org; Fri, 31 Oct 2008 16:34:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kw0he-0002iC-QO for qemu-devel@nongnu.org; Fri, 31 Oct 2008 16:34:42 -0400 Received: from [199.232.76.173] (port=59554 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kw0he-0002i8-JQ for qemu-devel@nongnu.org; Fri, 31 Oct 2008 16:34:42 -0400 Received: from savannah.gnu.org ([199.232.41.3]:45103 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kw0he-0000HF-NW for qemu-devel@nongnu.org; Fri, 31 Oct 2008 16:34:42 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Kw0hd-0006Wm-Et for qemu-devel@nongnu.org; Fri, 31 Oct 2008 20:34:41 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Kw0hd-0006Wh-2l for qemu-devel@nongnu.org; Fri, 31 Oct 2008 20:34:41 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Fri, 31 Oct 2008 20:34:41 +0000 Subject: [Qemu-devel] [5583] Remove dumb_refresh Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5583 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5583 Author: aliguori Date: 2008-10-31 20:34:40 +0000 (Fri, 31 Oct 2008) Log Message: ----------- 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 Modified Paths: -------------- trunk/vl.c Modified: trunk/vl.c =================================================================== --- trunk/vl.c 2008-10-31 20:00:18 UTC (rev 5582) +++ trunk/vl.c 2008-10-31 20:34:40 UTC (rev 5583) @@ -2510,13 +2510,6 @@ { } -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 @@ 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; }