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: 7922951 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C12F79F318 for ; Sun, 27 Dec 2015 06:22:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F11E3202F0 for ; Sun, 27 Dec 2015 06:22:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 177C8202F2 for ; Sun, 27 Dec 2015 06:22:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751695AbbL0GWO (ORCPT ); Sun, 27 Dec 2015 01:22:14 -0500 Received: from mail-pa0-f42.google.com ([209.85.220.42]:34902 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751372AbbL0GWN (ORCPT ); Sun, 27 Dec 2015 01:22:13 -0500 Received: by mail-pa0-f42.google.com with SMTP id jx14so151444194pad.2 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=KmaBAViqZfuIqbC6CcyGr6Uy8CGtEidA7kwUx4l15SezH5UrVzza1MUM64yqfDQsFo Jq3auEs98MBppt6IMvmBBs+RA9GqgM6uWnzLpdIB1InBY0DaSp2gQ2c+iruRBpL4RmXa EwncF7g6F+liKpjLGnyvgOc7TjTc6ZWPoc/LrevUfSNN+2LHLvN56ag9h1+eQNThteXF LG+i7OBJkhQMX0MAP1fIHhk0B+30GpLhpi+giwK9vL3WZGZLE8u5k/8Ixjmb7VOr5CW3 AGq8h0mPoDN1qtd6TFOPmNNCFk+bzBhCW4U+0NJWtYR39KnozWUDD4GoTxT63Y6Upq8Z iZgA== X-Gm-Message-State: ALoCoQnrdSotkjI3dfeLSKVzxFdQ5pXCCZcj7TSG1rFQX1u+U3+tJMekAqxf8PB1At7sno3y8CP4yA3ovPUfljTICynTuoLCZw== 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: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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",