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: 6899041 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 CF8659F38B for ; Thu, 30 Jul 2015 07:12:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0CD4320575 for ; Thu, 30 Jul 2015 07:12:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1E0032056E for ; Thu, 30 Jul 2015 07:12:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754489AbbG3HLT (ORCPT ); Thu, 30 Jul 2015 03:11:19 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:34096 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754423AbbG3HLO (ORCPT ); Thu, 30 Jul 2015 03:11:14 -0400 Received: by pacan13 with SMTP id an13so19154544pac.1 for ; Thu, 30 Jul 2015 00:11:14 -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=v5SzS8EE6i65VZlYqIrO58HpYa2Hi0r9luqZeVCWFP8=; b=MZju9/SbWuk5WS8YedAVzE9bgt+EUjm4v77hpZFirdDzyGMnaY6M5gBqNrIXTzSs1F IydpYgbn1M1XFfh5E5UtFmdmjXi4wC4D8up9hADyn2dc3F9b8gFJ02uM6lqk6nm5MW5w 9x/vs54CisyVWIzVeiDDdxOtCLi5pulSJeosnCtkG9ezlFGPKupHeiX0fdmtRoqvYEVV e0Y/ZlhYXx7DtdWgh0xDgp0K+aLKk5NRVCBicqQz84KpiGK3JEmQD+VcE/FKXqcsqn2w dB6e0ItuQ8IiAg1uWngw+wi3CI4wZfTZtvUpftSxM0vPj0oD+BOnjgqkQAotny7kGgsW am5w== X-Gm-Message-State: ALoCoQm8bFmz8a6dYbOWBDJfZuhTRx6M/bGgvgX9lgEfxlNGgdk4xvaELJOdGpkBXF0+xq5zi6XW 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-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 | 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);