From patchwork Thu May 15 05:51:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 30218 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id ADFD02055D for ; Thu, 15 May 2014 05:51:31 +0000 (UTC) Received: by mail-pa0-f72.google.com with SMTP id rd3sf3208134pab.7 for ; Wed, 14 May 2014 22:51:30 -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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=oZ9yuQIHgKi3OiBRRuC3eHtDz2Dk/bwx1xCZvWkbat8=; b=FHZMsXOcXW+XgykfXGEiHhEgpZcHG6nFig1Oj3AhUOdljC+FCjOo372L1nfIJ325s6 KQbySLRDvvkrQzHF3bFiOcl9ZvMA4ezBXx6qrI+8u/Ck5hb3xvcPEzs1/RxWmxlH9/ep Fd6osG3SP3cYSEAbwBTPY2VBqtLW/rZ885aFy/xuhvSl5eEh3A7hCTVUy3U/L3+DuSzr 3SaKKs0Rlkltq97qtkVekFJnejXHgL9N4KQdLFj8pszyo6v0UK4S0Uolp8/zJwLGI4li mjhJHL7DHOMMya23d7peVchmEGmXMqVQbD8C1MzJ8qg8NOuwtk88+Oa4bPh9f7hrvTw8 V7cA== X-Gm-Message-State: ALoCoQlsZzwrddbEvBCODI6vPiE8s87YCS0C32EWgR+YKMTg9If9yovHEHK6exP27/eumHtLJvsz X-Received: by 10.67.5.165 with SMTP id cn5mr1611027pad.9.1400133090774; Wed, 14 May 2014 22:51:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.115 with SMTP id e106ls74463qgd.65.gmail; Wed, 14 May 2014 22:51:30 -0700 (PDT) X-Received: by 10.220.81.194 with SMTP id y2mr50261vck.29.1400133090681; Wed, 14 May 2014 22:51:30 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id d9si745028vca.26.2014.05.14.22.51.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 May 2014 22:51:30 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id la4so3722652vcb.41 for ; Wed, 14 May 2014 22:51:30 -0700 (PDT) X-Received: by 10.52.153.229 with SMTP id vj5mr239468vdb.34.1400133090580; Wed, 14 May 2014 22:51:30 -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 ib8csp295604vcb; Wed, 14 May 2014 22:51:30 -0700 (PDT) X-Received: by 10.68.139.137 with SMTP id qy9mr9768391pbb.11.1400133089910; Wed, 14 May 2014 22:51:29 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sh6si4203814pac.209.2014.05.14.22.51.29; Wed, 14 May 2014 22:51:29 -0700 (PDT) Received-SPF: none (google.com: linux-pm-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 S1752390AbaEOFv2 (ORCPT + 12 others); Thu, 15 May 2014 01:51:28 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:33836 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751732AbaEOFv1 (ORCPT ); Thu, 15 May 2014 01:51:27 -0400 Received: by mail-wi0-f171.google.com with SMTP id hm4so9176955wib.4 for ; Wed, 14 May 2014 22:51:26 -0700 (PDT) X-Received: by 10.180.12.135 with SMTP id y7mr6604819wib.39.1400133086099; Wed, 14 May 2014 22:51:26 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id fs5sm31636540wic.22.2014.05.14.22.51.22 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 May 2014 22:51:25 -0700 (PDT) From: Viresh Kumar To: rjw@rjwysocki.net, swarren@nvidia.com Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, arvind.chauhan@arm.com, Viresh Kumar Subject: [PATCH] cpufreq: Tegra: drop wrapper around tegra_update_cpu_speed() Date: Thu, 15 May 2014 11:21:19 +0530 Message-Id: X-Mailer: git-send-email 2.0.0.rc2 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.220.182 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. Signed-off-by: Viresh Kumar Acked-by: Stephen Warren --- 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;