Message ID | 1459870344-16773-3-git-send-email-alex.bennee@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp538705lbc; Tue, 5 Apr 2016 08:39:21 -0700 (PDT) X-Received: by 10.55.221.8 with SMTP id n8mr41048279qki.50.1459870761465; Tue, 05 Apr 2016 08:39:21 -0700 (PDT) Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id y16si26599543qhb.66.2016.04.05.08.39.21 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 05 Apr 2016 08:39:21 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:37856 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1anT4b-0001L6-0y for patch@linaro.org; Tue, 05 Apr 2016 11:39:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1anSy7-0006jq-UW for qemu-devel@nongnu.org; Tue, 05 Apr 2016 11:32:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1anSy4-0007DY-5p for qemu-devel@nongnu.org; Tue, 05 Apr 2016 11:32:39 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:33758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1anSy4-0007DI-0P for qemu-devel@nongnu.org; Tue, 05 Apr 2016 11:32:36 -0400 Received: by mail-wm0-x234.google.com with SMTP id f198so37281919wme.0 for <qemu-devel@nongnu.org>; Tue, 05 Apr 2016 08:32:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RpKv+CfaN9b2mbOVrqDgDeKjsgSmxcmW07UhCOA5Ifg=; b=OtI8uxpITjkht9Jusl39PxpTS3M7G/+sKxpkqILwiTrsoUje/LQiws6aj7Rj35Jsji qTB0L4iPFdxoVLMBTi5+9IfmlN4tc+4r/jQZhtiS6+5z57STJAnh1d9mbt7trDOaq4PA jNZ9iRKyzbDgn9S/10AOCiMcmFy4jGiBf7lzw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RpKv+CfaN9b2mbOVrqDgDeKjsgSmxcmW07UhCOA5Ifg=; b=PTjYIx79tZzQvdQDHJw+fjTNIUgGZ8w97wkHBAAh8nHdcRTSoXXxxthgcKxxuB9ovV qq7GRZ3QkL1oc9Q/9uji2NwgqQ8Oy3L96FBRttpctcfueS8ho+2V/NwrrkBYKMgipRIO FJhOiqno/U0qT7UHgyCkc18IFGWNoyjR50Lms+ucK0RYk7pSoFZ9v2Gm3WKtsqF5IxZ7 nClF/meJ3QiOAByW2dTUFNBi9NqkJcycqbWEtiijhBUrogAIC6FIlvuP7htFD2fCPx0h PXNJS9WoCmlypqqOcFDyMYWoSTyKitl4kpz6RxmFpDghFgf7HAQczNm959IYyfn0JBOK LBMw== X-Gm-Message-State: AD7BkJJZ1GMyUyal0hGJm6yVmS5P9UbdZBiWq/bdENeJMBtIYIYrq1vfY1FDgNq5y85Wt3UV X-Received: by 10.28.91.83 with SMTP id p80mr19250132wmb.48.1459870355381; Tue, 05 Apr 2016 08:32:35 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id w193sm13764709wmd.0.2016.04.05.08.32.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Apr 2016 08:32:31 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 064F63E047F; Tue, 5 Apr 2016 16:32:33 +0100 (BST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= <alex.bennee@linaro.org> To: mttcg@listserver.greensocs.com, fred.konrad@greensocs.com, a.rigo@virtualopensystems.com, serge.fdrv@gmail.com, cota@braap.org Date: Tue, 5 Apr 2016 16:32:15 +0100 Message-Id: <1459870344-16773-3-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1459870344-16773-1-git-send-email-alex.bennee@linaro.org> References: <1459870344-16773-1-git-send-email-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::234 Cc: peter.maydell@linaro.org, claudio.fontana@huawei.com, Peter Crosthwaite <crosthwaite.peter@gmail.com>, jan.kiszka@siemens.com, mark.burton@greensocs.com, qemu-devel@nongnu.org, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= <alex.bennee@linaro.org>, rth@twiddle.net Subject: [Qemu-devel] [RFC v2 02/11] cpus: make all_vcpus_paused() return bool X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
diff --git a/cpus.c b/cpus.c index 8ae4777..e118fdf 100644 --- a/cpus.c +++ b/cpus.c @@ -1248,17 +1248,17 @@ void qemu_mutex_unlock_iothread(void) qemu_mutex_unlock(&qemu_global_mutex); } -static int all_vcpus_paused(void) +static bool all_vcpus_paused(void) { CPUState *cpu; CPU_FOREACH(cpu) { if (!cpu->stopped) { - return 0; + return false; } } - return 1; + return true; } void pause_all_vcpus(void)
Signed-off-by: Alex Bennée <alex.bennee@linaro.org> --- cpus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.7.4