From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=13.77.154.182 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796369141; b=qYrZNNhjcd3jRHv6jp8kX8sN4OYEmd0T+VrWH1+r/gZF/T3sYEfSUtsKoCHPKf7IxGgC TAiJeM7L775G+GuAq8XupgPNh0Q8pTZJ1XU3r0r5x57l1he2Vkzszj2Qlt4jbDVTrAkdf vb63CyFezVUauz8yBoDqd3kKRLSnQr7wSRTSas1gnWW9v0okjI3SNTFsChiQGlz9uLCsM rbAYdcj7+K9STjQc7c22V2G4MAYjToJB7qtXV9ZURxf2ArYVDoXNd8RP71d/Eq8BgXMjf WdXjnFuMvJmB06oHDnjNRwW/DbrEC778RHZKBiVrhZgNhcC8UVXHlfuAilvNMjdUDbw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796369141; h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:Content-Language: From:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Spam-Status: X-Spam-Checker-Version; bh=ODb8s79WFhoE2+OZ6LkVUHEazbLVMYD6k+J399ZqJJA=; b=UnZkTrQcBWNhMCFxxvJQwRz0mL2ihs77g9ABN0JyY1YZkJCCg/aJFd1FFBbnOzh7Fc5b QGv9ryc5OObqj+bGcZI7QhktG3cpVKJyCTnad5EWBWxH5DOycRhNqLxijQWVb8pmxs+n9 88R1gHVmYUQMbRu8f25gxn/jyhhseDpWP94MlKZakzAwVd3xfYUAkcWFhvM+FES0XaQ5n fYCFCzRFEoXHNsEoVdGdfP//Q3S77aAUZBjtkcLxFFIAv3zdkc9OCeLR+LtHLnHNxFG/y ov3CfSLVnOs4keV+RSqJLCqsmdWqOJNQBCF5d1W1onfcbNmRy6aWR4A4r6RnYwJBbGA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=BKlb1sQB; arc=none smtp.remote-ip=13.77.154.182 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC788606A322; Fri, 4 Dec 2026 07:25:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EC788606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=BKlb1sQB Received: from [10.94.176.68] (unknown [52.172.102.222]) by linux.microsoft.com (Postfix) with ESMTPSA id 5E78D20B716E; Thu, 3 Dec 2026 23:25:19 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 5E78D20B716E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1796369139; bh=ODb8s79WFhoE2+OZ6LkVUHEazbLVMYD6k+J399ZqJJA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=BKlb1sQBAYP7/N+o/uZ1fWRZf52kRCsXMTWostmVu2nv60I8hRoHanfSA17rRQRv6 y7S0/pGFjqrrwT9FdudJ8eK02wRzF1TVKDaruQ780z44asMNIf+arx4lHifF5pFGzl 14fwaqJzJDw45enMujYT4MpoM7aqAbvlyNVLpL6w= Message-ID: Date: Fri, 4 Dec 2026 12:55:15 +0530 X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 10/14] powercap/dtpm_cpu, hotplug: Update name & callback to match the hotplug state To: "Srivatsa S. Bhat (Microsoft)" , Jassi Brar , Michal Simek , Saeed Nowshadi , Tanmay Shah , Tejas Patel , Rajan Vaja , Greg Kroah-Hartman , Abhyuday Godhasara , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Heinrich Schuchardt , Anup Patel , Conor Dooley , Caleb James DeLisle , Daniel Lezcano , Thomas Gleixner , Maxime Coquelin , Alexandre Torgue , Herve Codina , Chris Packham , Markus Stockhausen , Sander Vanheule , Lorenzo Pieralisi , Sudeep Holla , Ulf Hansson , "Rafael J. Wysocki" , Christian Loehle , Anup Patel , Atish Patra , Suzuki K Poulose , Mike Leach , James Clark , Leo Yan , Alexander Shishkin , Yeoreum Yun , Radu Rendec , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Lee Jones , Pavel Machek , Griffin Kroah-Hartman , Lukasz Luba , Jens Wiklander , Sumit Garg , Etienne Carriere , Andrew Morton , Zqiang , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Jiri Olsa , Ian Rogers , Adrian Hunter , Guo Ren , Mao Han , Mete Durlu , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Palmer Dabbelt , linux-riscv@lists.infradead.org, linux-mips@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-renesas-soc@vger.kernel.org, linux-pm@vger.kernel.org, coresight@lists.linaro.org, linux-leds@vger.kernel.org, op-tee@lists.trustedfirmware.org, linux-perf-users@vger.kernel.org, linux-csky@vger.kernel.org, linux-s390@vger.kernel.org, Saurabh Sengar , Thara Gopinath References: <20261204-fix-cpuhp-state-names-v1-0-32e62361ce1d@csail.mit.edu> <20261204-fix-cpuhp-state-names-v1-10-32e62361ce1d@csail.mit.edu> Content-Language: en-US From: Prasanna Kumar T S M In-Reply-To: <20261204-fix-cpuhp-state-names-v1-10-32e62361ce1d@csail.mit.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 04-12-2026 00:46, Srivatsa S. Bhat (Microsoft) wrote: > The powercap dtpm_cpu driver registers a CPU hotplug teardown callback > at CPUHP_AP_DTPM_CPU_DEAD, but names the state "dtpm_cpu:offline". This > is misleading because the 'offline' suffix denotes the (teardown-only > state within the) ONLINE section, and not the PREPARE section where this > callback actually runs. > > Rename it to "dtpm_cpu:dead", following the naming convention documented > in Documentation/core-api/cpu_hotplug.rst. > > Also, rename the registered CPU hotplug teardown callback to match the > state that it is associated with. > > No functional change intended, except for the update to the name string, > which gets reflected in sysfs output and instrumentation. > > Fixes: 4570ddda4338 ("powercap/drivers/dtpm: Encapsulate even more the code") > Signed-off-by: Srivatsa S. Bhat (Microsoft) > --- > drivers/powercap/dtpm_cpu.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/powercap/dtpm_cpu.c b/drivers/powercap/dtpm_cpu.c > index 21355db6419d..39dd07bf0380 100644 > --- a/drivers/powercap/dtpm_cpu.c > +++ b/drivers/powercap/dtpm_cpu.c > @@ -167,7 +167,7 @@ static struct dtpm_ops dtpm_ops = { > .release = pd_release, > }; > > -static int cpuhp_dtpm_cpu_offline(unsigned int cpu) > +static int cpuhp_dtpm_cpu_dead(unsigned int cpu) > { > struct dtpm_cpu *dtpm_cpu; > > @@ -292,8 +292,8 @@ static int dtpm_cpu_init(void) > * callbacks at different moments when the CPU online mask is > * consistent with the power numbers we want to update. > */ > - ret = cpuhp_setup_state(CPUHP_AP_DTPM_CPU_DEAD, "dtpm_cpu:offline", > - NULL, cpuhp_dtpm_cpu_offline); > + ret = cpuhp_setup_state(CPUHP_AP_DTPM_CPU_DEAD, "dtpm_cpu:dead", > + NULL, cpuhp_dtpm_cpu_dead); > if (ret < 0) > return ret; > > Looks good to me. Reviewed-by: Prasanna Kumar T S M