From patchwork Sat May 17 04:51:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 30352 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CC93A20A25 for ; Sat, 17 May 2014 04:52:10 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id lc6sf20384763vcb.3 for ; Fri, 16 May 2014 21:52:10 -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=h2Jgj4IElYmwXwclloU+fAJLArZoZUuu1FiUrJ/ki/o=; b=Z1nTW6SEWeHr33TPLayPe3nak4IVXD/0ytDex8kJFjgkkcqX6w1JlZO2Fwtlg3QIeR rnmzqYQL4Doa6ldi5APXSPKjCd3L45+YfTjV7+XOUOdA4xRvMopBCx3OgPhWEmW4q2Ah mlgJNpXGhL5mhG/GEoYquHU91bTjEkva7ZOOw2Kwvzc72nK6irLioQ0MdFO24SAlsSQB Ehd4F7KjRguH+CzoH6nYWyicQfRessHwaezzzeAVbKCgcTMfrbr4AMtkqJG9tRiWSiov 9gzHPCh59uFwWJR22P+6fFFJwVA1dBEMWPcq95wvpcH5woa8aMLOqqx5BmQ5FKZXe6p9 H+Hw== X-Gm-Message-State: ALoCoQngZ4qkp/gL+pfDHYDMCdhZ0X9EF6s5qrlTJbkhKwevSuO3M6tobBrwKU0m8OvLMYBeENcI X-Received: by 10.58.196.209 with SMTP id io17mr10258430vec.7.1400302330588; Fri, 16 May 2014 21:52:10 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.7 with SMTP id 7ls1031631qgo.60.gmail; Fri, 16 May 2014 21:52:10 -0700 (PDT) X-Received: by 10.52.12.36 with SMTP id v4mr533048vdb.20.1400302330477; Fri, 16 May 2014 21:52:10 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id tx4si2191444vdc.58.2014.05.16.21.52.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 16 May 2014 21:52:10 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id ij19so7437556vcb.28 for ; Fri, 16 May 2014 21:52:10 -0700 (PDT) X-Received: by 10.52.134.202 with SMTP id pm10mr24768vdb.55.1400302330370; Fri, 16 May 2014 21:52:10 -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.220.221.72 with SMTP id ib8csp103907vcb; Fri, 16 May 2014 21:52:09 -0700 (PDT) X-Received: by 10.66.180.34 with SMTP id dl2mr26468722pac.124.1400302328540; Fri, 16 May 2014 21:52:08 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wh4si5723181pbc.4.2014.05.16.21.52.07; Fri, 16 May 2014 21:52:07 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756836AbaEQEv7 (ORCPT + 27 others); Sat, 17 May 2014 00:51:59 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:56917 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756709AbaEQEvy (ORCPT ); Sat, 17 May 2014 00:51:54 -0400 Received: by mail-pa0-f46.google.com with SMTP id kq14so3383376pab.19 for ; Fri, 16 May 2014 21:51:54 -0700 (PDT) X-Received: by 10.68.170.66 with SMTP id ak2mr25997347pbc.5.1400302314128; Fri, 16 May 2014 21:51:54 -0700 (PDT) Received: from localhost ([122.172.196.205]) by mx.google.com with ESMTPSA id uk1sm42556394pac.26.2014.05.16.21.51.49 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 16 May 2014 21:51:53 -0700 (PDT) From: Viresh Kumar To: rjw@rjwysocki.net Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, arvind.chauhan@arm.com, swarren@nvidia.com, nicolas.pitre@linaro.org, swarren@wwwdotorg.org, dianders@chromium.org, linux@arm.linux.org.uk, thomas.abraham@linaro.org, pdeschrijver@nvidia.com, Viresh Kumar Subject: [PATCH V3 3/4] cpufreq: Tegra: drop wrapper around tegra_update_cpu_speed() Date: Sat, 17 May 2014 10:21:22 +0530 Message-Id: <898b7b84ba61d89bc2cebb63111a745ec633a02e.1400302114.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.0.0.rc2 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: 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.220.169 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: , Tegra has implemented an unnecessary wrapper over tegra_update_cpu_speed(), i.e. tegra_target(), which wasn't doing anything apart of calling tegra_update_cpu_speed(). Get rid of that and use tegra_target() directly. Tested-by: Stephen Warren Signed-off-by: Viresh Kumar Reviewed-by: Doug Anderson --- drivers/cpufreq/tegra-cpufreq.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/cpufreq/tegra-cpufreq.c b/drivers/cpufreq/tegra-cpufreq.c index 63f0059..6e774c6 100644 --- a/drivers/cpufreq/tegra-cpufreq.c +++ b/drivers/cpufreq/tegra-cpufreq.c @@ -82,9 +82,9 @@ out: return ret; } -static int tegra_update_cpu_speed(struct cpufreq_policy *policy, - unsigned long rate) +static int tegra_target(struct cpufreq_policy *policy, unsigned int index) { + unsigned long rate = freq_table[index].frequency; int ret = 0; /* @@ -106,11 +106,6 @@ static int tegra_update_cpu_speed(struct cpufreq_policy *policy, return ret; } -static int tegra_target(struct cpufreq_policy *policy, unsigned int index) -{ - return tegra_update_cpu_speed(policy, freq_table[index].frequency); -} - static int tegra_cpu_init(struct cpufreq_policy *policy) { int ret;