Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2196739lqt; Mon, 22 Apr 2024 04:34:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVzzrrN9LSl0mKEkEfPLONx35wiLDpCZMhSX6KKVfYbL4t90e4O8usvNQvRXctmS9TY0jBEHconukX7ep8KrQsyJsIbEjjoJ4SSRa/TXA== X-Google-Smtp-Source: AGHT+IHpWywihwg04T2zJHmI3Ndd1EPE4zm5G6L84qT1x2j5kylzjYjiGF7Q+2471Gq8ClKdhDmM X-Received: by 2002:a17:903:948:b0:1e9:519:d464 with SMTP id ma8-20020a170903094800b001e90519d464mr12113113plb.65.1713785695541; Mon, 22 Apr 2024 04:34:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713785695; cv=pass; d=google.com; s=arc-20160816; b=stIajVCMS1hiTEvf6a1lps3xDOghyJaVLcyolb3HQjw8Ee+fMq6BKurn6epUVRzKy5 tD91m70TqIZSqpPxbj78EWBW8p2BGlU6ysxvuOp/OtNPytczw+ASd1ChQP3VlMS19NWx kc44o8hNbw7BOjNC9Ysr/WLRKJwtEOU2iJVvSRZSDf2ocEoQTNKNOqD5laXNVKtDannb RxAUJssZeuzkRNMVplTTBRODJlajQaC9aaU0YB5sMt3/huo2MsqWV+8BDB7SqCysBnWm STYwFvOCAOuZUqT0DcvK2813ERzHXB2dC3lipnI4C25+6QisQE8WNM4yTSG0YLLlSg14 vJbg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=K8TfC5Q8DI1+ZHbL42VHeXWJgaFxk6hPBMhmccoiuV4=; fh=wOhU+RfGR6AETSQpmLn4c4kjE8Q9JmYwekkxN+5ihyo=; b=X2fHseXDtrSB8SvR3B++Ry60nro1A5Yc/h2y4p2Ygx4Cuw7SSkvm+yXFieRYuu0vdq VJT2Bx8MT6em8sVSeBxXzGQSpJMVnFHGwjlu4iC60KTIX1gzTMGv+uGhTYCx3YliU+5m S1vJP4ehu2oMBEZqzqCkzvAGDX2Gfs/soTUz6DHo1bktzB8D1bl2/E7CxWxULv6V8brr v1TJfg4GBnG+I4l10X0XNk3qebbl1hko+aKZym5nPJBqZjjOqdX2aJOv99WQLPQ4yNzj ZZPUhuLmBqLafDrmws+Sj36AP5CSSYoqx7fTuAWDLTwuaC9cgA/6lRwCD30j1Txk/V/S 3X9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-153278-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153278-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l1-20020a170902f68100b001e3e64fb474si7955148plg.213.2024.04.22.04.34.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 04:34:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153278-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-153278-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153278-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8E23A285F96 for ; Mon, 22 Apr 2024 11:15:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 028AA1465BB; Mon, 22 Apr 2024 11:15:28 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 34530146595; Mon, 22 Apr 2024 11:15:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713784527; cv=none; b=u4ubhDQmyR2+X64vgd2KV/WP4gFLNwM/1dKpRkry8WD+XsYbvnQ9tALy7CSYBJPXPDDjnTmRzxKWt1r4tgvR2B5V52vZ0OWlpWrypJ9eDVfDNziIOJ2/uRbaYdirdEQkJQ4ASKnLFH0vTQyt28KS1lhz6UHJ+qJVmqBGZ6riOA0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713784527; c=relaxed/simple; bh=NRjxtz/01zaNwXC4ygXZ+GEc92RrPS3zV8ZqSZi7wKM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=WXzCOTy/ApcToCT3kzHU7iMGJRwnTwhdxlg1nx2ucDsFgho52qTvYJ5IRlhq5FgGgaD5troLaUCjNLiNZ41A6Ab/EEeP9nqnWqGkJfbNobPbr1zZdr95YCdZSl2fYv4dQA8uuAxdaOZyWvJHgbo7FizGC5aXLpRoirNE9Hk1qzg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0D6BB339; Mon, 22 Apr 2024 04:15:54 -0700 (PDT) Received: from [10.57.75.149] (unknown [10.57.75.149]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D4B963F7BD; Mon, 22 Apr 2024 04:15:24 -0700 (PDT) Message-ID: <748f5ec4-fa84-4ac8-bb3b-b452741fd786@arm.com> Date: Mon, 22 Apr 2024 12:15:33 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 3/3] thermal/debugfs: Rename thermal_debug_update_temp() to thermal_debug_update_trip_stats() To: "Rafael J. Wysocki" Cc: LKML , Linux PM , "Rafael J. Wysocki" , Daniel Lezcano References: <4918025.31r3eYUQgx@kreacher> <2937506.e9J7NaK4W3@kreacher> Content-Language: en-US From: Lukasz Luba In-Reply-To: <2937506.e9J7NaK4W3@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/17/24 14:11, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Rename thermal_debug_update_temp() to thermal_debug_update_trip_stats() > which is a better match for the purpose of the function. > > No functional impact. > > Signed-off-by: Rafael J. Wysocki > --- > drivers/thermal/thermal_core.c | 2 +- > drivers/thermal/thermal_debugfs.c | 2 +- > drivers/thermal/thermal_debugfs.h | 4 ++-- > 3 files changed, 4 insertions(+), 4 deletions(-) > > Index: linux-pm/drivers/thermal/thermal_core.c > =================================================================== > --- linux-pm.orig/drivers/thermal/thermal_core.c > +++ linux-pm/drivers/thermal/thermal_core.c > @@ -504,7 +504,7 @@ void __thermal_zone_device_update(struct > if (governor->manage) > governor->manage(tz); > > - thermal_debug_update_temp(tz); > + thermal_debug_update_trip_stats(tz); > > monitor_thermal_zone(tz); > } > Index: linux-pm/drivers/thermal/thermal_debugfs.c > =================================================================== > --- linux-pm.orig/drivers/thermal/thermal_debugfs.c > +++ linux-pm/drivers/thermal/thermal_debugfs.c > @@ -676,7 +676,7 @@ out: > mutex_unlock(&thermal_dbg->lock); > } > > -void thermal_debug_update_temp(struct thermal_zone_device *tz) > +void thermal_debug_update_trip_stats(struct thermal_zone_device *tz) > { > struct thermal_debugfs *thermal_dbg = tz->debugfs; > struct tz_debugfs *tz_dbg; > Index: linux-pm/drivers/thermal/thermal_debugfs.h > =================================================================== > --- linux-pm.orig/drivers/thermal/thermal_debugfs.h > +++ linux-pm/drivers/thermal/thermal_debugfs.h > @@ -11,7 +11,7 @@ void thermal_debug_tz_trip_up(struct the > const struct thermal_trip *trip); > void thermal_debug_tz_trip_down(struct thermal_zone_device *tz, > const struct thermal_trip *trip); > -void thermal_debug_update_temp(struct thermal_zone_device *tz); > +void thermal_debug_update_trip_stats(struct thermal_zone_device *tz); > #else > static inline void thermal_debug_init(void) {} > static inline void thermal_debug_cdev_add(struct thermal_cooling_device *cdev) {} > @@ -24,5 +24,5 @@ static inline void thermal_debug_tz_trip > const struct thermal_trip *trip) {}; > static inline void thermal_debug_tz_trip_down(struct thermal_zone_device *tz, > const struct thermal_trip *trip) {} > -static inline void thermal_debug_update_temp(struct thermal_zone_device *tz) {} > +static inline void thermal_debug_update_trip_stats(struct thermal_zone_device *tz) {} > #endif /* CONFIG_THERMAL_DEBUGFS */ > > > Reviewed-by: Lukasz Luba