From patchwork Tue Jul 28 13:47:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 51602 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by patches.linaro.org (Postfix) with ESMTPS id AE53020323 for ; Tue, 28 Jul 2015 13:47:56 +0000 (UTC) Received: by lafd3 with SMTP id d3sf38295018laf.1 for ; Tue, 28 Jul 2015 06:47:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=3M6GEbb1H2Jaia7FqspBUl642aK7hSRIfA5+dHgmCgA=; b=bZnvs09JRcSzZv+9WEzQ16i/Br5Sm12eQUYUkdPrSu876PhNZwXCXtNkXpbyFkyc4W tJ+C1ogvMRjl8RzJKgD28Jj7RR8DO7YDg8EYJzLhOypQY3qvfqVFfQBlDSGSilM9w7Rd RNuUT3F7JO5JpljtXpf5e/3rzUpIw/jaoOCjbglMuLTyppBg91mo09lu1EQtpvbXeW3T rNBoCLxbVgkuutubb9UtJg9mxKt4RVXHb0B9VHnHdIBNaSTjH+nZ4A3vzgwbYBmj0tTn O7XsadL2ftvjjIJGLntt+/WMr/oejMPQn92ydo+f9ri79sCZFnQoEd3KGTtRKXIQ0QQw U5sg== X-Gm-Message-State: ALoCoQkvzuEWPAuS9WvpQwDncJoBlq4wg0OXkwEd8gVN6iP+sjIG3PdyAAN5GqxCkcKgpofv8avO X-Received: by 10.194.5.229 with SMTP id v5mr14133838wjv.0.1438091275666; Tue, 28 Jul 2015 06:47:55 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.70 with SMTP id x6ls793882laa.5.gmail; Tue, 28 Jul 2015 06:47:55 -0700 (PDT) X-Received: by 10.152.43.37 with SMTP id t5mr32325440lal.96.1438091275397; Tue, 28 Jul 2015 06:47:55 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id pk10si18408974lbb.3.2015.07.28.06.47.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jul 2015 06:47:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by lagw2 with SMTP id w2so68902555lag.3 for ; Tue, 28 Jul 2015 06:47:55 -0700 (PDT) X-Received: by 10.112.131.98 with SMTP id ol2mr33573094lbb.56.1438091274966; Tue, 28 Jul 2015 06:47:54 -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 l6csp2151881lba; Tue, 28 Jul 2015 06:47:53 -0700 (PDT) X-Received: by 10.107.10.19 with SMTP id u19mr55212766ioi.27.1438091273323; Tue, 28 Jul 2015 06:47:53 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w2si9632257igl.34.2015.07.28.06.47.52; Tue, 28 Jul 2015 06:47:53 -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 S932277AbbG1Nrj (ORCPT + 12 others); Tue, 28 Jul 2015 09:47:39 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:35042 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932211AbbG1Nrh (ORCPT ); Tue, 28 Jul 2015 09:47:37 -0400 Received: by pdrg1 with SMTP id g1so71224989pdr.2 for ; Tue, 28 Jul 2015 06:47:37 -0700 (PDT) X-Received: by 10.70.103.37 with SMTP id ft5mr4425781pdb.83.1438091257153; Tue, 28 Jul 2015 06:47:37 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id v9sm35388315pdr.96.2015.07.28.06.47.35 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 28 Jul 2015 06:47:36 -0700 (PDT) Date: Tue, 28 Jul 2015 19:17:31 +0530 From: Viresh Kumar To: Bartlomiej Zolnierkiewicz Cc: Rafael Wysocki , linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, nm@ti.com, sboyd@codeaurora.org Subject: Re: [PATCH 0/4] cpufreq/opp: Turbo/boost mode support Message-ID: <20150728134731.GA12877@linux> References: <2445844.9YDNy0YEZL@amdc1976> <20150728121843.GA23710@linux> <2234559.Zs4Lk1DPT6@amdc1976> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <2234559.Zs4Lk1DPT6@amdc1976> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: 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.215.54 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: , List-Help: , List-Archive: List-Unsubscribe: , On 28-07-15, 15:38, Bartlomiej Zolnierkiewicz wrote: > I did look a them and they are lacking enabling of boost support flag > in cpufreq_dt driver structure. That's insulting now, I forgot to add this: So that is done from the above routine now. > There is also CONFIG_CPU_FREQ_BOOST_SW which needs to be enabled to > have boost frequencies in sysfs (code for that is in freq_table.c). Yeah, we should get rid of that as well.. > > those config options required. Get rid of them :) > > Do you mean that we should now depend only on dts info for enabling > boost support and that CONFIG_CPU_FREQ_BOOST_SW should be removed > (together with CONFIG_ARM_EXYNOS_CPU_FREQ_BOOST_SW)? Yes. diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 217928de2f0e..db4390ca5243 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -2495,6 +2495,8 @@ int cpufreq_enable_boost_support(void) if (cpufreq_boost_supported()) return 0; + cpufreq_driver->boost_supported = true; + /* This will get removed on driver unregister */ return create_boost_sysfs_file(); }