From patchwork Wed Apr 30 06:28:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jhbird.choi@samsung.com X-Patchwork-Id: 4091641 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B6E96BFF02 for ; Wed, 30 Apr 2014 06:29:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BEB11201F4 for ; Wed, 30 Apr 2014 06:29:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7524D201D5 for ; Wed, 30 Apr 2014 06:29:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757612AbaD3G2k (ORCPT ); Wed, 30 Apr 2014 02:28:40 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:24049 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754204AbaD3G2i (ORCPT ); Wed, 30 Apr 2014 02:28:38 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4T009U6ZBP1M20@mailout3.samsung.com>; Wed, 30 Apr 2014 15:28:37 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.51]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id E7.90.11120.41890635; Wed, 30 Apr 2014 15:28:36 +0900 (KST) X-AuditID: cbfee68f-b7eff6d000002b70-6c-5360981436a5 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 1E.D2.27725.41890635; Wed, 30 Apr 2014 15:28:36 +0900 (KST) Received: from DOJHBIRDCHO03 ([12.36.166.127]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N4T00G58ZBNRR70@mmp2.samsung.com>; Wed, 30 Apr 2014 15:28:36 +0900 (KST) From: Jonghwan Choi To: "'open list:CPU FREQUENCY DRI...'" , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: "'Rafael J. Wysocki'" , 'Viresh Kumar' , 'Kukjin Kim' Subject: [PATCH 3/3] cpufreq: Pass third argument as function parameter is Date: Wed, 30 Apr 2014 15:28:36 +0900 Message-id: <000201cf643d$6ac0da00$40428e00$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac9kPWDoRmHjeaq/T1KbZq8kq3m/NQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCIsWRmVeSWpSXmKPExsVy+t8zY12RGQnBBp179SyeNv1gt+hdcJXN YtPja6wWM87vY7I4c/oSq8XGrx4ObB53ru1h89i8pN5jy9V2Fo++LasYPT5vkgtgjeKySUnN ySxLLdK3S+DKaH+7l6lgnUjFr/PqDYxTBbsYOTkkBEwkpmy8xwJhi0lcuLeerYuRi0NIYBmj xK2jf1lgih6uec8KkZjOKNG9po0ZwvnHKLFg7R52kCo2AV2JY+u3gFWJCHQzSkxeuwSsnVmg XuJ05yZWEFtYwEuiYcVLZhCbRUBVouHkN7AaXgFLiXPzW5ghbEGJH5PvQfVqSazfeZwJwpaX 2LzmLTPESQoSO86+ZgSxRQT0JKbM/MkKUSMise/FO0aQIyQEjrFLzJ76lhVimYDEt8mHgIZy ACVkJTYdgJojKXFwxQ2WCYxis5CsnoVk9Swkq2chWbGAkWUVo2hqQXJBcVJ6kbFecWJucWle ul5yfu4mRkgM9u9gvHvA+hBjM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Ntt5j/PHvJ52Ro22bVh 1Yp/XJ9Wvlavu7dg3/6Nd47q9ZYr3dT0ms8r8G3PBabdW3pfiCqkezxjWDTh9tm1WdofUlTb bN7EHXDuOrLumcq/DUosxRmJhlrMRcWJADZtrhs0AwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In dev_pm_opp_init_cpufreq_table, flags parameter is added to indicate descending order. If flags is zero, it is a ascending order. Signed-off-by: Jonghwan Choi --- drivers/cpufreq/arm_big_little.c | 2 +- drivers/cpufreq/cpufreq-cpu0.c | 2 +- drivers/cpufreq/imx6q-cpufreq.c | 2 +- drivers/cpufreq/omap-cpufreq.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) dev_err(mpu_dev, "%s: cpu%d: failed creating freq table[%d]\n", diff --git a/drivers/cpufreq/arm_big_little.c b/drivers/cpufreq/arm_big_little.c index bad2ed3..851f53b 100644 --- a/drivers/cpufreq/arm_big_little.c +++ b/drivers/cpufreq/arm_big_little.c @@ -332,7 +332,7 @@ static int _get_cluster_clk_and_freq_table(struct device *cpu_dev) goto out; } - ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table[cluster]); + ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table[cluster], 0); if (ret) { dev_err(cpu_dev, "%s: failed to init cpufreq table, cpu: %d, err: %d\n", __func__, cpu_dev->id, ret); diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-cpu0.c index 1bf6bba..2557860 100644 --- a/drivers/cpufreq/cpufreq-cpu0.c +++ b/drivers/cpufreq/cpufreq-cpu0.c @@ -158,7 +158,7 @@ static int cpu0_cpufreq_probe(struct platform_device *pdev) goto out_put_node; } - ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table); + ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table, 0); if (ret) { pr_err("failed to init cpufreq table: %d\n", ret); goto out_put_node; diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c index e27fca8..c2bf03f 100644 --- a/drivers/cpufreq/imx6q-cpufreq.c +++ b/drivers/cpufreq/imx6q-cpufreq.c @@ -212,7 +212,7 @@ static int imx6q_cpufreq_probe(struct platform_device *pdev) } } - ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table); + ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table, 0); if (ret) { dev_err(cpu_dev, "failed to init cpufreq table: %d\n", ret); goto put_node; diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c index 5f69c9a..afe9bf8 100644 --- a/drivers/cpufreq/omap-cpufreq.c +++ b/drivers/cpufreq/omap-cpufreq.c @@ -119,7 +119,7 @@ static int omap_cpu_init(struct cpufreq_policy *policy) return PTR_ERR(policy->clk); if (!freq_table) { - result = dev_pm_opp_init_cpufreq_table(mpu_dev, &freq_table); + result = dev_pm_opp_init_cpufreq_table(mpu_dev, &freq_table, 0); if (result) {