From patchwork Tue Oct 31 10:48:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pavel Dovgalyuk X-Patchwork-Id: 117567 Delivered-To: patch@linaro.org Received: by 10.80.245.45 with SMTP id t42csp3802252edm; Tue, 31 Oct 2017 04:01:33 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TO8QIPX1GHHwr5tT0W6RLh0p5OFt9NpAEJp4/6SIOKO2nc6qcw4z75IkqWXiIcWO0ta78N X-Received: by 10.37.244.78 with SMTP id p14mr866120ybe.110.1509447693536; Tue, 31 Oct 2017 04:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509447693; cv=none; d=google.com; s=arc-20160816; b=b/ItUuSm+9DJZmTvC6dVSFam8zz1yjAK3ZdJPKD3dqjIw6wUarhAOmUZXqXAImRjs4 g+ao5er2MDeLPXKHotDMfs//VTypJpSRFTS30GqL6DVqToU34BtvHHrqBNfmBlii37G7 rWar+G2NetRJYkq39RFM/n+DxgKowX68ET17PA1bKQUX8Z2qDWskYDUCrAnZJVZE6U99 j3xncGovZhF5zQ6LElqnRI4DoBEFL75lM6mOs347u6fwHCT+woSQiO7x65W8lh3tFcl4 IHAdvDgD9VPJRhyLHWnBGGd4/YB4SaUAfgqWU9GSCe2/RVaDzwH4SHcc7/w5GUigFabm f2cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:user-agent:references :in-reply-to:message-id:date:to:from:arc-authentication-results; bh=39XNj9uY4RiuJB9kAGLzIFesAJKoxn1Oi+KsdSiyWlY=; b=cSmGh8c9kd0uzlUJo5m4SsuFmhLPJwhN/yIWU9Q7RlCYHMYII55s+PVustB0Hdj+I1 ijt8BLY0DeWriSaEESZNeGjTado/GzcpH6J3/eOezBHy1aSIAlsMcfexPhExJf/ue+dw FOkzhzS0kMPqzGetHL1RP1DOVHGELFCtcLu3i3vu4TO0hZDhRUD7RYk+dcGlQ4/dbI0G E2r2tt3gl18eB3YDIH8vD2lQ3QYaAd237h2N6q5GB5fd50NIIw1j2uclXAjFqBsgggN0 hFgRgceLafqV2UrEcWEoCBiQUunQe5umVrh/6FJ/2QnZDYrYn1WnuAJZa19vdO2Z8YTq D9tQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id n71si310794ybf.756.2017.10.31.04.01.33 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 31 Oct 2017 04:01:33 -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; 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 Received: from localhost ([::1]:44752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9UIX-000098-1D for patch@linaro.org; Tue, 31 Oct 2017 07:01:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9U68-00063Z-24 for qemu-devel@nongnu.org; Tue, 31 Oct 2017 06:48:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e9U64-0004aA-Tw for qemu-devel@nongnu.org; Tue, 31 Oct 2017 06:48:44 -0400 Received: from mail.ispras.ru ([83.149.199.45]:39934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9U64-0004Z3-MX for qemu-devel@nongnu.org; Tue, 31 Oct 2017 06:48:40 -0400 Received: from [127.0.1.1] (unknown [85.142.117.226]) by mail.ispras.ru (Postfix) with ESMTPSA id D72AB54006A; Tue, 31 Oct 2017 13:48:39 +0300 (MSK) From: Pavel Dovgalyuk To: qemu-devel@nongnu.org Date: Tue, 31 Oct 2017 13:48:40 +0300 Message-ID: <20171031104840.3079.81200.stgit@pasha-VirtualBox> In-Reply-To: <20171031104741.3079.26584.stgit@pasha-VirtualBox> References: <20171031104741.3079.26584.stgit@pasha-VirtualBox> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 83.149.199.45 Subject: [Qemu-devel] [RFCPATCH11/20] target/arm/arm-powertctl: drop BQL assertions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dovgaluk@ispras.ru Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Alex Bennée The powerctl code is run in the context of the vCPU changing power state. It does not need the BQL to protect its changes. Signed-off-by: Alex Bennée Signed-off-by: Pavel Dovgalyuk --- target/arm/arm-powerctl.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/target/arm/arm-powerctl.c b/target/arm/arm-powerctl.c index 25207cb..9661a59 100644 --- a/target/arm/arm-powerctl.c +++ b/target/arm/arm-powerctl.c @@ -124,7 +124,6 @@ static void arm_set_cpu_on_async_work(CPUState *target_cpu_state, g_free(info); /* Finally set the power status */ - assert(qemu_mutex_iothread_locked()); target_cpu->power_state = PSCI_ON; } @@ -135,8 +134,6 @@ int arm_set_cpu_on(uint64_t cpuid, uint64_t entry, uint64_t context_id, ARMCPU *target_cpu; struct CpuOnInfo *info; - assert(qemu_mutex_iothread_locked()); - DPRINTF("cpu %" PRId64 " (EL %d, %s) @ 0x%" PRIx64 " with R0 = 0x%" PRIx64 "\n", cpuid, target_el, target_aa64 ? "aarch64" : "aarch32", entry, context_id); @@ -227,7 +224,6 @@ static void arm_set_cpu_off_async_work(CPUState *target_cpu_state, { ARMCPU *target_cpu = ARM_CPU(target_cpu_state); - assert(qemu_mutex_iothread_locked()); target_cpu->power_state = PSCI_OFF; target_cpu_state->halted = 1; target_cpu_state->exception_index = EXCP_HLT; @@ -238,8 +234,6 @@ int arm_set_cpu_off(uint64_t cpuid) CPUState *target_cpu_state; ARMCPU *target_cpu; - assert(qemu_mutex_iothread_locked()); - DPRINTF("cpu %" PRId64 "\n", cpuid); /* change to the cpu we are powering up */ @@ -274,8 +268,6 @@ int arm_reset_cpu(uint64_t cpuid) CPUState *target_cpu_state; ARMCPU *target_cpu; - assert(qemu_mutex_iothread_locked()); - DPRINTF("cpu %" PRId64 "\n", cpuid); /* change to the cpu we are resetting */