Message ID | 1464986428-6739-2-git-send-email-alex.bennee@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp447548qgf; Fri, 3 Jun 2016 13:42:56 -0700 (PDT) X-Received: by 10.140.145.82 with SMTP id 79mr5262116qhr.95.1464986576118; Fri, 03 Jun 2016 13:42:56 -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 v55si4589361qta.25.2016.06.03.13.42.56 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 03 Jun 2016 13:42:56 -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]:57629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1b8vvj-0001Dt-M5 for patch@linaro.org; Fri, 03 Jun 2016 16:42:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1b8vtU-0008Pq-OX for qemu-devel@nongnu.org; Fri, 03 Jun 2016 16:40:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1b8vtP-0000OO-8d for qemu-devel@nongnu.org; Fri, 03 Jun 2016 16:40:36 -0400 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:38048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1b8vtO-0000Nt-Tv for qemu-devel@nongnu.org; Fri, 03 Jun 2016 16:40:31 -0400 Received: by mail-wm0-x232.google.com with SMTP id m124so4109462wme.1 for <qemu-devel@nongnu.org>; Fri, 03 Jun 2016 13:40:30 -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=DJi5GqYLR9QbnaS724C8S1e4gFX0/y9Uy2ATqOSzmKA=; b=CFCVOu/6SPOvsHbaXhgUkeBE08+M1i1Om7wx68qA445orTKOM4Y10e0uTy7vq7C6yV YU1YCDyCRavIC/1nksQG2RZd0CW1+VhC2TlCzzOGTablQwCeFfkDBxLJlGMy8d4ej1m/ gldUzLzF4zJgjZvntKWnZR+SJPPQJIrAc54TI= 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=DJi5GqYLR9QbnaS724C8S1e4gFX0/y9Uy2ATqOSzmKA=; b=iQRBhh+v9X+lheTI8y5XWaq4q7dNtvHlD+CzuWyENHtGXrmlFkkLubod74l8OfHDRC lB0eWYYCIsMBF3pwYthUjF+3I3x2Xerz4bgOLhB/nysFyNJ+jpEnm6fToc2S6wRAhRrF 97kVGTuvKRgfqdY1TsDCRyb3zJ2BXn26HUOOKP3SEUK4dElqIm/MuxtmRBGCjBscx2Tg 5oleXWA4vh46+ulq9yhE/pQV0TEuKc3IlFReZ2IzmTVzJauAha3Z+1W/sUrJb8YOikQX RNZqAGjgTfU1hTQuFHWQlisR6okhZGwIxr8ezNFkKYMyDIbE4+eGX4qHqQ4lD6JY7Cjy EfTw== X-Gm-Message-State: ALyK8tLJ+VKAd4Am6N3eS8ZSDsCpt2nJY7oW8+xOQTOqfX01SRVJZejkUrSSBoJkMA/uaJlQ X-Received: by 10.195.11.34 with SMTP id ef2mr2856706wjd.67.1464986430134; Fri, 03 Jun 2016 13:40:30 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id h2sm7382483wjv.15.2016.06.03.13.40.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Jun 2016 13:40:27 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 571BC3E0B11; Fri, 3 Jun 2016 21:40:39 +0100 (BST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= <alex.bennee@linaro.org> To: mttcg@listserver.greensocs.com, qemu-devel@nongnu.org, fred.konrad@greensocs.com, a.rigo@virtualopensystems.com, serge.fdrv@gmail.com, cota@braap.org, bobby.prani@gmail.com Date: Fri, 3 Jun 2016 21:40:10 +0100 Message-Id: <1464986428-6739-2-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1464986428-6739-1-git-send-email-alex.bennee@linaro.org> References: <1464986428-6739-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::232 Subject: [Qemu-devel] [RFC v3 01/19] cpus: make all_vcpus_paused() return bool X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 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> Cc: peter.maydell@linaro.org, Peter Crosthwaite <crosthwaite.peter@gmail.com>, claudio.fontana@huawei.com, mark.burton@greensocs.com, jan.kiszka@siemens.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= <alex.bennee@linaro.org>, rth@twiddle.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
diff --git a/cpus.c b/cpus.c index 665f9bb..c404dd7 100644 --- a/cpus.c +++ b/cpus.c @@ -1258,17 +1258,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)