From patchwork Thu Jul 30 07:10:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 6899051 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 941BF9F38B for ; Thu, 30 Jul 2015 07:12:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C0C0A2054A for ; Thu, 30 Jul 2015 07:12:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6898F20584 for ; Thu, 30 Jul 2015 07:12:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753898AbbG3HLK (ORCPT ); Thu, 30 Jul 2015 03:11:10 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:35931 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754143AbbG3HLJ (ORCPT ); Thu, 30 Jul 2015 03:11:09 -0400 Received: by pachj5 with SMTP id hj5so18772224pac.3 for ; Thu, 30 Jul 2015 00:11:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=yqX97gqfcZiAe/LaIJNtKf1Md+b69pRv8dBo/gcqFNY=; b=gu4uIIfXy5GCey8+wQM0xpMkkxj7f6Lpc8+O5LKgqTNw9LL0z661GmO5X2l+uW9Ni3 IfIhwLRvTXBvsxFLbs0AX+zHTi0embMNq2TGJq2lGamJv2MFZmwNNzP4rzIhyj2JhVDf TqFviGK6/wLNZPNqRRvaV95/mQ4X6HDZjvxq/jwFGz6L1FwyhpMBfE9WWRx15W28Po+E fkGvQDM9vgmoNxF03E4roM4eSCvzR3m4v18pWvbpbs3L7k/uR/3viCIQSzDzEo356sKC IgDqlNgFywStsJ80NZ5MXpb0oqloxVPjR50bBXFfmbDOzSP+othxFq+KXIiX519k+JBo GaQg== X-Gm-Message-State: ALoCoQmrCZKAsn+ZijInGUzGabP0rtFlai8//SoYkFr6zbef/iKl77obOqPG/L2CiZ1isMSzmaWd X-Received: by 10.66.55.105 with SMTP id r9mr104385460pap.143.1438240268441; Thu, 30 Jul 2015 00:11:08 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id un2sm291997pac.28.2015.07.30.00.11.07 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 30 Jul 2015 00:11:07 -0700 (PDT) From: Viresh Kumar To: edubezval@gmail.com Cc: linaro-kernel@lists.linaro.org, rui.zhang@intel.com, linux-pm@vger.kernel.org, radivoje.jovanovic@linux.intel.com, punit.agrawal@arm.com, Viresh Kumar , linux-kernel@vger.kernel.org (open list) Subject: [PATCH 4/6] thermal/cpu_cooling: rename cpufreq_val as clipped_freq Date: Thu, 30 Jul 2015 12:40:33 +0530 Message-Id: X-Mailer: git-send-email 2.4.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-8.3 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 That's what it is for, lets name it properly. Signed-off-by: Viresh Kumar --- drivers/thermal/cpu_cooling.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index bf2673bb3cf5..61ee726ede34 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -68,7 +68,7 @@ struct power_table { * registered cooling device. * @cpufreq_state: integer value representing the current state of cpufreq * cooling devices. - * @cpufreq_val: integer value representing the absolute value of the clipped + * @clipped_freq: integer value representing the absolute value of the clipped * frequency. * @max_level: maximum cooling level. One less than total number of valid * cpufreq frequencies. @@ -91,7 +91,7 @@ struct cpufreq_cooling_device { int id; struct thermal_cooling_device *cool_dev; unsigned int cpufreq_state; - unsigned int cpufreq_val; + unsigned int clipped_freq; unsigned int max_level; unsigned int *freq_table; /* In descending order */ struct cpumask allowed_cpus; @@ -226,7 +226,7 @@ static int cpufreq_thermal_notifier(struct notifier_block *nb, if (!cpumask_test_cpu(policy->cpu, &cpufreq_dev->allowed_cpus)) continue; - max_freq = cpufreq_dev->cpufreq_val; + max_freq = cpufreq_dev->clipped_freq; if (policy->max != max_freq) cpufreq_verify_within_limits(policy, 0, max_freq); @@ -514,7 +514,7 @@ static int cpufreq_set_cur_state(struct thermal_cooling_device *cdev, clip_freq = cpufreq_device->freq_table[state]; cpufreq_device->cpufreq_state = state; - cpufreq_device->cpufreq_val = clip_freq; + cpufreq_device->clipped_freq = clip_freq; cpufreq_update_policy(cpu); @@ -856,7 +856,7 @@ __cpufreq_cooling_register(struct device_node *np, pr_debug("%s: freq:%u KHz\n", __func__, freq); } - cpufreq_dev->cpufreq_val = cpufreq_dev->freq_table[0]; + cpufreq_dev->clipped_freq = cpufreq_dev->freq_table[0]; cpufreq_dev->cool_dev = cool_dev; mutex_lock(&cooling_cpufreq_lock);