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: 7922981 Return-Path: X-Original-To: patchwork-linux-mediatek@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BE410BEEE5 for ; Sun, 27 Dec 2015 06:22:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DDCD8202F0 for ; Sun, 27 Dec 2015 06:22:39 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1117A202E6 for ; Sun, 27 Dec 2015 06:22:39 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aD4j0-00049j-Mw; Sun, 27 Dec 2015 06:22:38 +0000 Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aD4iv-00046O-37 for linux-mediatek@lists.infradead.org; Sun, 27 Dec 2015 06:22:34 +0000 Received: by mail-pa0-x232.google.com with SMTP id uo6so72409740pac.1 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=Ddr16LRPTkdXRymq0BvzkD7MVktJXD+q1lrVbdE8yw8v22pxEg7t+hcXAYNvK/MeH/ qkBktUN0njKxlvYy+lZysxXHalMX//B4vPl9eWKPEshew8Km4E4C5lCPVuZUfL9GRVPk x3IpasWD0jVMMPjqGo2h/MWt4pkXY6y2ZobS8dVcXZoMynqasDwhDL2gNBkmKB/OH3/C kfMhjW0qQ5GvSTNCG9nEbmFwxU8O1uOLAT0y6aYqd1AzpRlz8/dVjWOF5Q8qXUM/NVFT DS8EfRhYugQ/mf4ZztzFOhlu2pGOMftBsB831HVRfWTShz44XHAiZOS5aW2xt8vrjb8K L7/Q== X-Gm-Message-State: ALoCoQkDL855x65VhPpe1pTaYDfJtvxwDnYWv2aKhHivudG4d4RVUn8lXhW0hm7IUbcgL1T9X13CI6vcQdH/fKqeTylV3Il0vQ== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151226_222233_319168_C8FE5F7B X-CRM114-Status: UNSURE ( 8.81 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Michael Turquette , linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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",