Message ID | 5dba664d47ca399e0ad7a55f2d74688d1300a703.1438166099.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBBHHC4KWQKGQEJMF6RFA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id E2E2A22DB5 for <linaro@patches.linaro.org>; Wed, 29 Jul 2015 10:55:24 +0000 (UTC) Received: by wixh2 with SMTP id h2sf5756412wix.0 for <linaro@patches.linaro.org>; Wed, 29 Jul 2015 03:55:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=fVaJazgx7JnbA84qftfLmGZrTuIMS3juyzp4RrQQbXA=; b=JdOZg6nQyrDBudGI62dH5EvLkbfVZVkmZqQ34x8HQ6yu3fGZpP4ttv8Obqr/ka2PBk QHireUDTmivjIiXd+TvznH6bxTwBeAtWcfQ3ZJ7B6cdli+VTpoTEyujX0XWwErqV6hrV HS/JFtmvbcOyutLCzVTr6HLE9p9lj0VXRlmQZkeEdXepOH2AlqM7k+fzA+qOAF+Om6lG /TbR3BTOC3HBeOfuEVP524kEeOZmArIZ3Vn18SxlIoytFByYD7JGmF1h6OYS5hjtMaX+ 5HV2cX5z3UkZ9QYvABDdK/B0jBlERt5WQTEgO+I2gdg1DZDk1+M0zRIRgNE5+/A0HuLU +2NA== X-Gm-Message-State: ALoCoQnWCaO6fVoBwxQDQ8vZmHEpKs6fnU1shLQlzNn+A+dLjFIcAQQhox3/N19gVSmdKh++OZTw X-Received: by 10.152.237.36 with SMTP id uz4mr15701735lac.1.1438167324179; Wed, 29 Jul 2015 03:55:24 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.200 with SMTP id x8ls29637lae.10.gmail; Wed, 29 Jul 2015 03:55:23 -0700 (PDT) X-Received: by 10.152.30.4 with SMTP id o4mr37120325lah.74.1438167323912; Wed, 29 Jul 2015 03:55:23 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id h9si21188911lam.85.2015.07.29.03.55.23 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2015 03:55:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbbyj8 with SMTP id yj8so4309971lbb.0 for <patchwork-forward@linaro.org>; Wed, 29 Jul 2015 03:55:23 -0700 (PDT) X-Received: by 10.152.120.135 with SMTP id lc7mr37266413lab.41.1438167323825; Wed, 29 Jul 2015 03:55:23 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp2676229lba; Wed, 29 Jul 2015 03:55:22 -0700 (PDT) X-Received: by 10.66.159.68 with SMTP id xa4mr94440556pab.105.1438167320562; Wed, 29 Jul 2015 03:55:20 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rt15si8753772pab.240.2015.07.29.03.55.19; Wed, 29 Jul 2015 03:55:20 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753272AbbG2KzH (ORCPT <rfc822;pi-cheng.chen@linaro.org> + 12 others); Wed, 29 Jul 2015 06:55:07 -0400 Received: from mail-pd0-f175.google.com ([209.85.192.175]:33728 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752137AbbG2KzG (ORCPT <rfc822;linux-pm@vger.kernel.org>); Wed, 29 Jul 2015 06:55:06 -0400 Received: by pdbnt7 with SMTP id nt7so4160203pdb.0 for <linux-pm@vger.kernel.org>; Wed, 29 Jul 2015 03:55:06 -0700 (PDT) X-Received: by 10.70.133.42 with SMTP id oz10mr93476709pdb.85.1438167306188; Wed, 29 Jul 2015 03:55:06 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id 2sm40088661pdp.68.2015.07.29.03.55.04 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 29 Jul 2015 03:55:05 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> To: Rafael Wysocki <rjw@rjwysocki.net>, sboyd@codeaurora.org Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, rob.herring@linaro.org, arnd.bergmann@linaro.org, nm@ti.com, broonie@kernel.org, mturquette@baylibre.com, Sudeep.Holla@arm.com, viswanath.puttagunta@linaro.org, l.stach@pengutronix.de, thomas.petazzoni@free-electrons.com, linux-arm-kernel@lists.infradead.org, ta.omasab@gmail.com, kesavan.abhilash@gmail.com, khilman@linaro.org, santosh.shilimkar@oracle.com, b.zolnierkie@samsung.com, Viresh Kumar <viresh.kumar@linaro.org>, linux-kernel@vger.kernel.org (open list) Subject: [PATCH V3 16/16] cpufreq: dt: Add support for turbo/boost mode Date: Wed, 29 Jul 2015 16:23:11 +0530 Message-Id: <5dba664d47ca399e0ad7a55f2d74688d1300a703.1438166099.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.4.0 In-Reply-To: <cover.1438166099.git.viresh.kumar@linaro.org> References: <cover.1438166099.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1438166099.git.viresh.kumar@linaro.org> References: <cover.1438166099.git.viresh.kumar@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c index c6e7033076de..b9259abd25d4 100644 --- a/drivers/cpufreq/cpufreq-dt.c +++ b/drivers/cpufreq/cpufreq-dt.c @@ -330,6 +330,14 @@ static int cpufreq_init(struct cpufreq_policy *policy) goto out_free_cpufreq_table; } + /* Support turbo/boost mode */ + if (policy_has_boost_freq(policy)) { + /* This gets disabled by core on driver unregister */ + ret = cpufreq_enable_boost_support(); + if (ret) + goto out_free_cpufreq_table; + } + policy->cpuinfo.transition_latency = transition_latency; of_node_put(np);
With opp-v2 DT bindings, few OPPs can be used only for the boost mode. But using such OPPs require the boost mode to be supported by cpufreq driver. We will parse DT bindings only during ->init() and so can enable boost support only after registering cpufreq driver. This enables boost support as soon as any policy has boost/turbo OPPs for its CPUs. We don't need to disable boost support as that is done by the core, when the driver is unregistered. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/cpufreq/cpufreq-dt.c | 8 ++++++++ 1 file changed, 8 insertions(+)