From patchwork Thu Apr 21 08:59:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 66353 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp17523qge; Thu, 21 Apr 2016 02:00:52 -0700 (PDT) X-Received: by 10.98.79.203 with SMTP id f72mr19099289pfj.102.1461229252297; Thu, 21 Apr 2016 02:00:52 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16si1960015pfo.244.2016.04.21.02.00.52; Thu, 21 Apr 2016 02:00:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751324AbcDUJAs (ORCPT + 13 others); Thu, 21 Apr 2016 05:00:48 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:32855 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752004AbcDUI7t (ORCPT ); Thu, 21 Apr 2016 04:59:49 -0400 Received: by mail-pa0-f49.google.com with SMTP id zm5so27233455pac.0 for ; Thu, 21 Apr 2016 01:59:49 -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 :in-reply-to:references; bh=kkVFTBwhyeY1oCPVgE8t4+Ta5sOeKc/vPPIT3qUFJCY=; b=Gp1Qkk5ep7B9KvGSkiPgnWttVIPSkMeONN9oqCbnbbvekwCRN5v9NBAScoCN+eCSuN CbOXCliuMO9NP+rA2DLqej9r3jVBBVlUgYXelYML/E/ctq7LJ4k+1+Z2hRf9+PZv7bOq BdbUFzdD3PIxXCmfDd8S9IJaRiX/t+oMINDlg= 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:in-reply-to:references; bh=kkVFTBwhyeY1oCPVgE8t4+Ta5sOeKc/vPPIT3qUFJCY=; b=Gt/+WeNUZjaLbyfxiuKg3A1+vjuOgkGZ0SayKqhBrmUWDMVxOtUCHib5+Li5PnW15Q LOY0jlnRMG7G+MaNs1Vdgn3V3A7kGHARfhQf8+uIay0707nDY++pBr5G9LMhDDKQ09wS QSEN1WO0qe7rFrMOFLwPHEvGGoOsXZUvICkI+MHzYS8/nFbExhU8XBI4g+KCG/sDHBJn 5obB16rqkm73qbqx+o0LAaaS1P88DsGHaAAq7wRxh7/N9QivM/L5zxTKb/wSTrqi0lLz EAf3jl5ygxWDSf5UWz4X/88zZzjmKenA3rAyYBn7K+ZkwJ2Wzdc6gVuHKsH0PBOmrToX WLAQ== X-Gm-Message-State: AOPr4FUGRULvOYRUXpqUN0Je0Dy6N2W7HRz1h1avO18DEU5UKW81ehT94J8sO6OhGMR0V++l X-Received: by 10.66.122.100 with SMTP id lr4mr18113375pab.99.1461229183990; Thu, 21 Apr 2016 01:59:43 -0700 (PDT) Received: from localhost ([122.167.26.250]) by smtp.gmail.com with ESMTPSA id gp9sm299585pac.8.2016.04.21.01.59.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Apr 2016 01:59:43 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, nm@ti.com, sboyd@codeaurora.org, arnd.bergmann@linaro.org, thomas.petazzoni@free-electrons.com, Viresh Kumar , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/10] mvebu: Use dev_pm_opp_set_sharing_cpus() to mark OPP tables as shared Date: Thu, 21 Apr 2016 14:29:00 +0530 Message-Id: <3808dbeda9c233026ed78fa3ec94c0bbd898875c.1461228504.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.7.1.410.g6faf27b In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org That will allow us to avoid using cpufreq-dt platform data. Cc: Thomas Petazzoni Cc: Jason Cooper Cc: Andrew Lunn Cc: Gregory Clement Cc: Sebastian Hesselbarth Signed-off-by: Viresh Kumar --- arch/arm/mach-mvebu/pmsu.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) -- 2.7.1.410.g6faf27b -- To unsubscribe from this list: send the line "unsubscribe linux-pm" 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/arch/arm/mach-mvebu/pmsu.c b/arch/arm/mach-mvebu/pmsu.c index ed8fda4cd055..79d0a5d9da8e 100644 --- a/arch/arm/mach-mvebu/pmsu.c +++ b/arch/arm/mach-mvebu/pmsu.c @@ -20,7 +20,6 @@ #include #include -#include #include #include #include @@ -609,10 +608,6 @@ int mvebu_pmsu_dfs_request(int cpu) return 0; } -struct cpufreq_dt_platform_data cpufreq_dt_pd = { - .independent_clocks = true, -}; - static int __init armada_xp_pmsu_cpufreq_init(void) { struct device_node *np; @@ -683,10 +678,15 @@ static int __init armada_xp_pmsu_cpufreq_init(void) clk_put(clk); return ret; } + + ret = dev_pm_opp_set_sharing_cpus(cpu_dev, + (struct cpumask *) cpumask_of(cpu_dev->id)); + if (ret) + dev_err(cpu_dev, "%s: failed to mark OPPs as shared: %d\n", + __func__, ret); } - platform_device_register_data(NULL, "cpufreq-dt", -1, - &cpufreq_dt_pd, sizeof(cpufreq_dt_pd)); + platform_device_register_simple("cpufreq-dt", -1, NULL, 0); return 0; }