Message ID | b2b36251301a17c2f37166de194d43dd448f3f72.1438081962.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBBEGL3WWQKGQEMJJK3PY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 19EA2214B7 for <linaro@patches.linaro.org>; Tue, 28 Jul 2015 11:20:49 +0000 (UTC) Received: by wicmv11 with SMTP id mv11sf37424344wic.1 for <linaro@patches.linaro.org>; Tue, 28 Jul 2015 04:20:48 -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=R1O4NlRVVaAXN4atgYzwOLCq+sgIK+RqmtTCbE7N1Es=; b=B0XS8N/0vwKpQJVlNkExriJZmoywBCgItDP7yJ8rMA1WInpWT+SZ5YieWq109NXFd8 iU4o0sLA0yms+ZzjLQ0hkFDWDXIG3niqqMxLu5prkRwpNVvHJxIQOGnDYlwqlTCM+AsU UvQPHeRIp9PHoZeqUtbY0RT8MPwNxeYdIpftoc785Pu1XaHC/ofC1/btASbwU8AnPA+Z vewqmok66b2MHpzgL6Gngr7lCY0Zsbxuam3czWRLsIiRB7L61/WisH28UM1958vPaajn vHGe3ImRN/0t6ervmGJR6gvMf2zy3uA+bWg5lcnAHK7EwmfJKxCslXyIblkapQqUxCVq 7A6w== X-Gm-Message-State: ALoCoQmmvD61s/aHGuAaPeYoLp4zP5tR+A9IUjiMFaN7RYGr6l2vWjdzIwEO/dfRdK+Ug5uY79J7 X-Received: by 10.152.120.69 with SMTP id la5mr13836893lab.7.1438082448417; Tue, 28 Jul 2015 04:20:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.30.103 with SMTP id r7ls645360lah.106.gmail; Tue, 28 Jul 2015 04:20:48 -0700 (PDT) X-Received: by 10.152.5.130 with SMTP id s2mr32415359las.31.1438082448230; Tue, 28 Jul 2015 04:20:48 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id rz3si18060150lbb.7.2015.07.28.04.20.48 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jul 2015 04:20:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbbqi7 with SMTP id qi7so72281143lbb.3 for <patchwork-forward@linaro.org>; Tue, 28 Jul 2015 04:20:48 -0700 (PDT) X-Received: by 10.112.199.133 with SMTP id jk5mr32828313lbc.32.1438082448048; Tue, 28 Jul 2015 04:20:48 -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 l6csp2075180lba; Tue, 28 Jul 2015 04:20:47 -0700 (PDT) X-Received: by 10.67.3.9 with SMTP id bs9mr79633126pad.136.1438082446283; Tue, 28 Jul 2015 04:20:46 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fq2si39821469pdb.231.2015.07.28.04.20.45; Tue, 28 Jul 2015 04:20:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 S932389AbbG1LUj (ORCPT <rfc822;matthew.hart@linaro.org> + 28 others); Tue, 28 Jul 2015 07:20:39 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:33486 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755656AbbG1LUd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 28 Jul 2015 07:20:33 -0400 Received: by padck2 with SMTP id ck2so68527976pad.0 for <linux-kernel@vger.kernel.org>; Tue, 28 Jul 2015 04:20:32 -0700 (PDT) X-Received: by 10.66.168.229 with SMTP id zz5mr76923414pab.41.1438082432874; Tue, 28 Jul 2015 04:20:32 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id w10sm34658361pds.49.2015.07.28.04.20.31 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 28 Jul 2015 04:20:32 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> To: Rafael Wysocki <rjw@rjwysocki.net> Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, b.zolnierkie@samsung.com, nm@ti.com, sboyd@codeaurora.org, Tomasz Figa <tomasz.figa@gmail.com>, Michael Turquette <mturquette@baylibre.com>, Javier Martinez Canillas <javier@dowhile0.org>, Thomas Abraham <thomas.ab@samsung.com>, Viresh Kumar <viresh.kumar@linaro.org>, linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/4] cpufreq: Update boost flag while initializing freq table from OPPs Date: Tue, 28 Jul 2015 16:50:01 +0530 Message-Id: <b2b36251301a17c2f37166de194d43dd448f3f72.1438081962.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.4.0 In-Reply-To: <cover.1438081962.git.viresh.kumar@linaro.org> References: <cover.1438081962.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1438081962.git.viresh.kumar@linaro.org> References: <cover.1438081962.git.viresh.kumar@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@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.171 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_opp.c b/drivers/cpufreq/cpufreq_opp.c index 773bcde893c0..0f5e6d5f6da0 100644 --- a/drivers/cpufreq/cpufreq_opp.c +++ b/drivers/cpufreq/cpufreq_opp.c @@ -75,6 +75,10 @@ int dev_pm_opp_init_cpufreq_table(struct device *dev, } freq_table[i].driver_data = i; freq_table[i].frequency = rate / 1000; + + /* Is Boost/turbo opp ? */ + if (dev_pm_opp_is_turbo(opp)) + freq_table[i].flags = CPUFREQ_BOOST_FREQ; } freq_table[i].driver_data = i;