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=1796369236; b=nYyT6fvX3fGAOtQAJNJdD0WLnH39LxJ9pK/zI8+wzQeenVeGTH35tubG38cLY+kZpWwM wPjSCzdbxLMJqg2ZdY3T5MJcaVUEY3xeGn6dkPq7MpBMCsBJ2y1Ux4FxGkM+niEMjN2G4 fUAZCWYTI1Sblh2F3u5yic3PWSNpzKBWTTwLpGR8JNsHOWaUNCpmPc+TezxkGJUbjhgSa 653FRUCI2iHggGRPNMlE37g5P2X5PjH6f8tbtp2E953+qHDPo9c2gwPtNmlqqRAyWaS+q 2fpRL/WqCyrwSuBHdpf2tpLtvVo/3XBEZO0Nd0OkZtdhc8hIEq7kMn+8JsyWfi0g/0Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796369236; 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=8HsgHqRTZ5R7tgyO1UswN9jA22EJSd4ZbAf5FBSshu4=; b=jDeCBe6HgZBo2/PcoyjNpaxSClLT3fw3Uc8EgZ6AE//zXV8xw4IjuHsAEX7rJqLje2vH PFwqdPPuLZSFEoKRaeEJW8aHdRAsDz36ERRezx6qatyIeJNk0fkyCKQNAF7k2kl1ZJKaO ySAPS1JRzjWesYPz1dQNOuKg+8Ph1QfwXkhnOiyglnvojVub1xZ42bVXp048vHhNZni94 ++sCBwWy6CqDpJTal54C+8OmprNezQOFwKF8Dduv3vk5Zfl19HC7UWXdThIHkz4X5kpXS j/EfsYkx5hPx/a3j/VkpLfsiXV+clKCpfwdd0SRL3bP5dku3USlulNlJ4/O4e3PxE2A== 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=cyVzLKTL; 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 6E34B606A322; Fri, 4 Dec 2026 07:27:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6E34B606A322 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=cyVzLKTL Received: from [10.94.176.68] (unknown [52.172.102.222]) by linux.microsoft.com (Postfix) with ESMTPSA id 00E3F20B7170; Thu, 3 Dec 2026 23:26:54 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 00E3F20B7170 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1796369235; bh=8HsgHqRTZ5R7tgyO1UswN9jA22EJSd4ZbAf5FBSshu4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=cyVzLKTLaPQBth449LYCeUS0bNj4klGxGExsY4pngxBmZ5j7rODazTfrf1+saoBd8 YzUplIcKV9OvscX5JzdD4tQwvrTnHr+fkWufOCmPyt367lXVITTq5i1lBFWUXYfgol XGi137FeN/QP8iyctfBamOFx8cJKVH4VbSChRX5k= Message-ID: Date: Fri, 4 Dec 2026 12:56:52 +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 12/14] debugobjects, 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-12-32e62361ce1d@csail.mit.edu> Content-Language: en-US From: Prasanna Kumar T S M In-Reply-To: <20261204-fix-cpuhp-state-names-v1-12-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 debugobjects teardown callback is registered at CPUHP_DEBUG_OBJ_DEAD, > but its state name is "object:offline". This is misleading because the > 'offline' suffix denotes a teardown-only state in the ONLINE section, > and not the PREPARE section where this callback actually runs. > > Rename it to "object: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: 88451f2cd3ce ("debugobjects: Free per CPU pool after CPU unplug") > Signed-off-by: Srivatsa S. Bhat (Microsoft) > --- > lib/debugobjects.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/lib/debugobjects.c b/lib/debugobjects.c > index 877f7675ba26..723fe9e42b31 100644 > --- a/lib/debugobjects.c > +++ b/lib/debugobjects.c > @@ -569,7 +569,7 @@ static void put_objects(struct hlist_head *list) > } > > #ifdef CONFIG_HOTPLUG_CPU > -static int object_cpu_offline(unsigned int cpu) > +static int object_cpu_dead(unsigned int cpu) > { > /* Remote access is safe as the CPU is dead already */ > struct obj_pool *pcp = per_cpu_ptr(&pool_pcpu, cpu); > @@ -1578,8 +1578,8 @@ void __init debug_objects_mem_init(void) > static_branch_enable(&obj_cache_enabled); > > #ifdef CONFIG_HOTPLUG_CPU > - cpuhp_setup_state_nocalls(CPUHP_DEBUG_OBJ_DEAD, "object:offline", NULL, > - object_cpu_offline); > + cpuhp_setup_state_nocalls(CPUHP_DEBUG_OBJ_DEAD, "object:dead", NULL, > + object_cpu_dead); > #endif > return; > } > Looks good to me. Reviewed-by: Prasanna Kumar T S M