From patchwork Thu Jul 30 07:10:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 51680 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by patches.linaro.org (Postfix) with ESMTPS id F2A5022DB5 for ; Thu, 30 Jul 2015 07:11:39 +0000 (UTC) Received: by lahh5 with SMTP id h5sf9288007lah.0 for ; Thu, 30 Jul 2015 00:11:38 -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=yh+NH5HOa+UhJUcXnOn+okLZgi9txfZvJBzcCMTlCIM=; b=EfuEUoRGHQqNojgFImUmhVYQcf66a9pRswiJgr5O2c+dvCIaL7MDtn9pYC13EHJlXw E9T8uZudlHPTAqieic9LSetHD6xHXZNwYI2hoPp+D36wqU6O4dIB3o0Pl21sMG7+h7nQ otS4b67xMeJkyWFRWfmSW3Yzde3Z57zowgbZIPOYqpMPAVY8gEskaPNmnGB6Bxeqtr5q U/cj2pC9g9ywEpD0a4T5gPhnkhV9KvYAv7EOwueT44tu+2zx8vKCbYLe776wyYk4hbo/ odp307Myk3egzNmNGUuPsieWP1Yp+bH3gHNJISABrjJwkZfrfax5zgsfbXrfForFQLlx q9Lw== X-Gm-Message-State: ALoCoQkvED2sNUufzM8vCvwJ+dngmtBEhK8a7mUQFKbb7Pf2pApipcqUgqpSCwccoKWvPJGG0rnO X-Received: by 10.194.179.42 with SMTP id dd10mr17293550wjc.7.1438240298937; Thu, 30 Jul 2015 00:11:38 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.129 with SMTP id s1ls157018las.89.gmail; Thu, 30 Jul 2015 00:11:38 -0700 (PDT) X-Received: by 10.152.21.103 with SMTP id u7mr42070145lae.49.1438240298674; Thu, 30 Jul 2015 00:11:38 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id pt2si109398lbb.46.2015.07.30.00.11.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jul 2015 00:11:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by lbbud7 with SMTP id ud7so17317090lbb.3 for ; Thu, 30 Jul 2015 00:11:38 -0700 (PDT) X-Received: by 10.112.125.34 with SMTP id mn2mr38763282lbb.76.1438240298567; Thu, 30 Jul 2015 00:11:38 -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 l6csp361932lba; Thu, 30 Jul 2015 00:11:37 -0700 (PDT) X-Received: by 10.66.138.40 with SMTP id qn8mr103432360pab.19.1438240296786; Thu, 30 Jul 2015 00:11:36 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id lw9si288175pab.151.2015.07.30.00.11.35; Thu, 30 Jul 2015 00:11:36 -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 S1754585AbbG3HLX (ORCPT + 25 others); Thu, 30 Jul 2015 03:11:23 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:34096 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754420AbbG3HLO (ORCPT ); Thu, 30 Jul 2015 03:11:14 -0400 Received: by pacan13 with SMTP id an13so19154543pac.1 for ; Thu, 30 Jul 2015 00:11:14 -0700 (PDT) X-Received: by 10.66.216.74 with SMTP id oo10mr99926342pac.82.1438240274223; Thu, 30 Jul 2015 00:11:14 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id h12sm274071pdk.77.2015.07.30.00.11.12 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 30 Jul 2015 00:11:13 -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 5/6] thermal/cpu_cooling: rename max_freq as clipped_freq in notifier Date: Thu, 30 Jul 2015 12:40:34 +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.170 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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index 61ee726ede34..9209c324a7fc 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -215,7 +215,7 @@ static int cpufreq_thermal_notifier(struct notifier_block *nb, unsigned long event, void *data) { struct cpufreq_policy *policy = data; - unsigned long max_freq; + unsigned long clipped_freq; struct cpufreq_cooling_device *cpufreq_dev; if (event != CPUFREQ_ADJUST) @@ -226,10 +226,10 @@ static int cpufreq_thermal_notifier(struct notifier_block *nb, if (!cpumask_test_cpu(policy->cpu, &cpufreq_dev->allowed_cpus)) continue; - max_freq = cpufreq_dev->clipped_freq; + clipped_freq = cpufreq_dev->clipped_freq; - if (policy->max != max_freq) - cpufreq_verify_within_limits(policy, 0, max_freq); + if (policy->max != clipped_freq) + cpufreq_verify_within_limits(policy, 0, clipped_freq); break; } mutex_unlock(&cooling_cpufreq_lock);