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: 51679 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id C97B422DB5 for ; Thu, 30 Jul 2015 07:11:24 +0000 (UTC) Received: by wilm20 with SMTP id m20sf14624251wil.2 for ; Thu, 30 Jul 2015 00:11:24 -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=tXwhdOHlWzCrzAFI82/eU/+1xvEOOkwtJgPeSa5gIj8=; b=B/yqNrhtVmUeGUdB5s6UaajW6ackLYogxJ9E3jcn1UZjfGptWLZkMiu/b3ZkPhSfcr ZjE3jvgVkteF5dM9qsafykgntfC4uuX72PZ2/VXnLGlAByejLCSWxZyr6ibAIEb5EjP0 DfEe995oWvd4G6cNdl1Kgr1TG51HsoI4IIjT4hMDsUlZ5LI5UxOVAs91IZKOLoSZ7FsP P1F1BSlqSw+775WNsFc1oPt74AEe+i42O4zOrRsEehUqlRBh0EX6vnMfxwPrfsQ+SuNb Pnz3FNwGoffza69oOS+bzJ0xt8HbfIp/9ICtcAo/LUPlJocxrZiQB28VYxI5s3sMHXyt NLGg== X-Gm-Message-State: ALoCoQnhgAi9Lh3341Ew+g7/QEIQ/4fFE0oGaabHCyzFBg7zQUS9lUjumWYTQQBxW1nVCq4AOTfl X-Received: by 10.112.9.100 with SMTP id y4mr17227277lba.20.1438240284130; Thu, 30 Jul 2015 00:11:24 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.178.164 with SMTP id cz4ls144085lac.3.gmail; Thu, 30 Jul 2015 00:11:23 -0700 (PDT) X-Received: by 10.152.6.69 with SMTP id y5mr42284501lay.72.1438240283957; Thu, 30 Jul 2015 00:11:23 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id ex6si98152lac.82.2015.07.30.00.11.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jul 2015 00:11:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lblf12 with SMTP id f12so21305967lbl.2 for ; Thu, 30 Jul 2015 00:11:23 -0700 (PDT) X-Received: by 10.112.166.2 with SMTP id zc2mr42715609lbb.29.1438240283861; Thu, 30 Jul 2015 00:11:23 -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 l6csp361784lba; Thu, 30 Jul 2015 00:11:22 -0700 (PDT) X-Received: by 10.66.248.9 with SMTP id yi9mr102160676pac.149.1438240279059; Thu, 30 Jul 2015 00:11:19 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7si212934pdl.254.2015.07.30.00.11.17; Thu, 30 Jul 2015 00:11:19 -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 S1754416AbbG3HLM (ORCPT + 25 others); Thu, 30 Jul 2015 03:11:12 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:35316 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754137AbbG3HLI (ORCPT ); Thu, 30 Jul 2015 03:11:08 -0400 Received: by pabkd10 with SMTP id kd10so18794352pab.2 for ; Thu, 30 Jul 2015 00:11:08 -0700 (PDT) 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-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.217.171 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: , 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);