Message ID | 62971ce19528d707b89e6521f50779fef3ecf145.1438166099.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBBCPC4KWQKGQEG63XO5Q@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 AE56D22DB5 for <linaro@patches.linaro.org>; Wed, 29 Jul 2015 10:55:06 +0000 (UTC) Received: by wicmv11 with SMTP id mv11sf5638595wic.1 for <linaro@patches.linaro.org>; Wed, 29 Jul 2015 03:55:06 -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=BZRCOzuJSwTNWv4OW4AYt3RYYPu2r4KfND734gZhm0H0ikFandFkemhcxa8FhqzEFB 8pFiPYkKWKvrZRRAmpS/kDigiYyNKekz/MofT27GItZYwplJIaYxDXEL9oeZz5MKU4L/ o1hnLFIkoJKn+xHYL4SA1tHA87e3knfIJvTx7CXHmfNDUwgWQ96WtGrAw0PZ4YqBYvWT akZf/THK0ur2VIC0XoYeNaoG0CFrX7eJTi2zETPUXZJzUZ3X1Czbn1gNpXXvPWIvDy1t SbCPM2jx6FfmqX9OivzcRguYx1xyyRTqtBYnCpEcuJ2CS6zEF0JGpIgYGTWfKyht/o7b j9oA== X-Gm-Message-State: ALoCoQmBcclsMwwqQEuiUjMP/qfKZJyaAuj67Tive++PRg8G6IPbM8u8e6R/xEFo8sbVrexJ+RVv X-Received: by 10.180.35.162 with SMTP id i2mr862226wij.6.1438167306048; Wed, 29 Jul 2015 03:55:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.65 with SMTP id r1ls28598lag.61.gmail; Wed, 29 Jul 2015 03:55:05 -0700 (PDT) X-Received: by 10.152.18.194 with SMTP id y2mr37564146lad.5.1438167305710; Wed, 29 Jul 2015 03:55:05 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id 6si21208777lai.40.2015.07.29.03.55.05 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2015 03:55:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbbyj8 with SMTP id yj8so4305188lbb.0 for <patchwork-forward@linaro.org>; Wed, 29 Jul 2015 03:55:05 -0700 (PDT) X-Received: by 10.152.26.163 with SMTP id m3mr38170403lag.86.1438167305591; Wed, 29 Jul 2015 03:55:05 -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 l6csp2676083lba; Wed, 29 Jul 2015 03:55:04 -0700 (PDT) X-Received: by 10.70.55.134 with SMTP id s6mr90314316pdp.137.1438167303696; Wed, 29 Jul 2015 03:55:03 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4si58103286pdg.219.2015.07.29.03.55.02; Wed, 29 Jul 2015 03:55:03 -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 S1753198AbbG2Kyv (ORCPT <rfc822;matthew.hart@linaro.org> + 27 others); Wed, 29 Jul 2015 06:54:51 -0400 Received: from mail-pd0-f170.google.com ([209.85.192.170]:35191 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753123AbbG2Kyr (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 29 Jul 2015 06:54:47 -0400 Received: by pdrg1 with SMTP id g1so4095970pdr.2 for <linux-kernel@vger.kernel.org>; Wed, 29 Jul 2015 03:54:47 -0700 (PDT) X-Received: by 10.70.16.67 with SMTP id e3mr92370536pdd.98.1438167287152; Wed, 29 Jul 2015 03:54:47 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id i10sm40077744pdr.78.2015.07.29.03.54.45 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 29 Jul 2015 03:54:46 -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, Tomasz Figa <tomasz.figa@gmail.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 V3 13/16] cpufreq: Update boost flag while initializing freq table from OPPs Date: Wed, 29 Jul 2015 16:23:08 +0530 Message-Id: <62971ce19528d707b89e6521f50779fef3ecf145.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-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.178 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;