From patchwork Fri Apr 5 04:28:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: liguang X-Patchwork-Id: 234034 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 104822C00A8 for ; Fri, 5 Apr 2013 15:29:49 +1100 (EST) Received: from localhost ([::1]:52748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNyHa-0001kY-Fz for incoming@patchwork.ozlabs.org; Fri, 05 Apr 2013 00:29:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNyH0-0001ZC-2u for qemu-devel@nongnu.org; Fri, 05 Apr 2013 00:29:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNyGy-0005lF-9n for qemu-devel@nongnu.org; Fri, 05 Apr 2013 00:29:09 -0400 Received: from [222.73.24.84] (port=7140 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNyGx-0005kM-Vd for qemu-devel@nongnu.org; Fri, 05 Apr 2013 00:29:08 -0400 X-IronPort-AV: E=Sophos;i="4.87,412,1363104000"; d="scan'208";a="7001180" Received: from unknown (HELO tang.cn.fujitsu.com) ([10.167.250.3]) by song.cn.fujitsu.com with ESMTP; 05 Apr 2013 12:26:26 +0800 Received: from fnstmail02.fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id r354T1ip013935; Fri, 5 Apr 2013 12:29:01 +0800 Received: from liguang.fnst.cn.fujitsu.com ([10.167.233.147]) by fnstmail02.fnst.cn.fujitsu.com (Lotus Domino Release 8.5.3) with ESMTP id 2013040512275901-317115 ; Fri, 5 Apr 2013 12:27:59 +0800 From: liguang To: aliguori@us.ibm.com, peter.maydell@linaro.org, pbonzini@redhat.com, stefanha@gmail.com, afaerber@suse.de, qemu-devel@nongnu.org Date: Fri, 5 Apr 2013 12:28:11 +0800 Message-Id: <1365136091-26148-8-git-send-email-lig.fnst@cn.fujitsu.com> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1365136091-26148-1-git-send-email-lig.fnst@cn.fujitsu.com> References: <1365136091-26148-1-git-send-email-lig.fnst@cn.fujitsu.com> X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/04/05 12:27:59, Serialize by Router on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/04/05 12:28:00, Serialize complete at 2013/04/05 12:28:00 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 222.73.24.84 Cc: liguang Subject: [Qemu-devel] [PATCH][RFC v2 7/7] vl: run power_management X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org run power_management temporarily, later, if this approach is accepted, will try to replace main_loop_should_exit() Signed-off-by: liguang --- vl.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/vl.c b/vl.c index a14549e..731158a 100644 --- a/vl.c +++ b/vl.c @@ -2041,6 +2041,7 @@ static void main_loop(void) #ifdef CONFIG_PROFILER dev_time += profile_getclock() - ti; #endif + power_management(); } while (!main_loop_should_exit()); }