From patchwork Sun Dec 27 06:21:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "pi-cheng.chen" X-Patchwork-Id: 59002 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp1082221lbb; Sat, 26 Dec 2015 22:22:15 -0800 (PST) X-Received: by 10.98.65.219 with SMTP id g88mr55664389pfd.63.1451197335124; Sat, 26 Dec 2015 22:22:15 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 21si45428236pfj.91.2015.12.26.22.22.14; Sat, 26 Dec 2015 22:22:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751620AbbL0GWN (ORCPT + 6 others); Sun, 27 Dec 2015 01:22:13 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:32860 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751360AbbL0GWN (ORCPT ); Sun, 27 Dec 2015 01:22:13 -0500 Received: by mail-pa0-f46.google.com with SMTP id cy9so95058054pac.0 for ; Sat, 26 Dec 2015 22:22:12 -0800 (PST) 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; bh=1TI7A6HeyaY9Uypj99joI+Jfymb4vckJhdUZGa+kOlw=; b=Hm0tLmSVOJHwAYkuhhYI7WRWizmdJE+O9fn8EoK2BxMWYtwwLEAS0lIS2sLO8VfGrY Zm9SIcZibcFaFTxZiadMNCoJrscFmbouPmqktV6alPp6xtWSc2CSCyId107lx4u5bJZW AnYauZp1uTVIVetsUbSxSjXUU4jf6tuY94jpM= 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; bh=1TI7A6HeyaY9Uypj99joI+Jfymb4vckJhdUZGa+kOlw=; b=lq/qo4BHQCy/gw58Z3jbtlRdbb4W9k8QxAXlkN9E7g0xGERgRKH1Q1Gt4O5dvyRlxc lAHCrfRCjimh4WxR/vFnFYrCwLD/B+/EoFWooa71MoCTMFQyTPfTEtpYxtRK2j74tWIF TIqU4gTNJtMjNYl3+QjIi30zcF2eSO6BCt3AGuINk8fUWaWIp/KbuH8B3/9e4lfp6rhI vWx+GYfeGHd9J9l3i6AIyKDW/nIyk+rLd3Ng2Qm0CpaC/xsNY0JBnf3TGmwKLVTwLMNm F8FEbSzrCHmuXV/yesvrMFsKgLi+H9/CCPOds86nnKKGbGXK5MW1TI2o6VGu0gsh82ty 1H1A== X-Gm-Message-State: ALoCoQnE8Coq2WfdP/rgAuJAkyj/EbANb/RHe/nSmOSf2cMr9yZAqKzYYrzXRkvL4/TQ1t78yUURZ3Rww3q/T0K4AENamYgfXA== X-Received: by 10.66.242.17 with SMTP id wm17mr37664795pac.155.1451197332425; Sat, 26 Dec 2015 22:22:12 -0800 (PST) Received: from localhost.localdomain ([124.219.30.17]) by smtp.googlemail.com with ESMTPSA id tu9sm73508609pac.0.2015.12.26.22.22.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 26 Dec 2015 22:22:09 -0800 (PST) From: Pi-Cheng Chen To: Viresh Kumar , Matthias Brugger Cc: Michael Turquette , Daniel Kurtz , linux-mediatek@lists.infradead.org, linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 1/3] PM/OPP: Don't skip cpu_dev->id when setting up cpumask Date: Sun, 27 Dec 2015 14:21:56 +0800 Message-Id: <1451197318-12418-2-git-send-email-pi-cheng.chen@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1451197318-12418-1-git-send-email-pi-cheng.chen@linaro.org> References: <1451197318-12418-1-git-send-email-pi-cheng.chen@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Don't skip cpu_dev->id when setting up cpumask for CPUs that share the same OPP table. This might be helpful when handling cpumask without the original CPU bitfield set. Signed-off-by: Pi-Cheng Chen --- drivers/base/power/opp/cpu.c | 4 ---- 1 file changed, 4 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/base/power/opp/cpu.c b/drivers/base/power/opp/cpu.c index 7b445e8..4914a0d 100644 --- a/drivers/base/power/opp/cpu.c +++ b/drivers/base/power/opp/cpu.c @@ -214,7 +214,6 @@ EXPORT_SYMBOL_GPL(dev_pm_opp_of_cpumask_add_table); /* * Works only for OPP v2 bindings. * - * cpumask should be already set to mask of cpu_dev->id. * Returns -ENOENT if operating-points-v2 bindings aren't supported. */ int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask) @@ -235,9 +234,6 @@ int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask goto put_cpu_node; for_each_possible_cpu(cpu) { - if (cpu == cpu_dev->id) - continue; - tcpu_dev = get_cpu_device(cpu); if (!tcpu_dev) { dev_err(cpu_dev, "%s: failed to get cpu%d device\n",