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=1796369308; b=iVlIPEnLxNet8v6G4olZvPjjCMcMzP8dOQyIvPVpQChrqJBV8y2pRA864f8k2hKRBpLR F8QQ3F8fUc8kMLU66JyCYF1K5qkgTBjKLxZffy3h1G1iWvh15U9toLX/Cc73CsK+0VbSp Sm8H0YnLhy2DONhNz2VmZP9ySpCwPB8ryCVqb8i+DctFF3A7XtFb+TIkHPRioSTT8kO8n 6YAFX6BXWn0wRZhNEbac8czhZE11lMAiH7tZ3Ohd1k4UEglH7VokrsYHAmOc/G/C/WGdD K1E3iHpXqyFKMKXMgQGvVkC7WMd9wjtjYPZvdWM3z5Kxly6OiKGxtml/GRvTNX/3xhQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796369308; 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=BJh/rWzP0axZN8fKMjYyuv1UY2sAbnNMKFEDJg/qcB8=; b=Qvcp4KVQuqbveuXEHhYsim51n6IfRnKgyUposs0590IkKUxXa0kzy68SOev/v+2Od4Z+ +yWuLWoEEqe4n/vnSp3zsbYl987oAAi5gnbRbwPD4Lc+n13n25tomAx7OfyxGasX1Yxq3 +XfIaF3sYsLyZU5CPewqccWtDgo3XJOC5Y6Vkutj98gWrlx3tsqU2G/XRFmQhCBaKzlmg +oG1W77NiKDT4uCELO7DyNTAhoRXRDoO18Z72ATylw7M3wu7XNT6d86FZJyrTxhUbJ0uA mSlOzGUbn2TwOBUx3ajamVJMy4Y1TLQ2czGAyJpMdOs/1y9NkGGSf8sUnlkVSYILJhw== 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=qGl++TfN; 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 54EE2606A32C; Fri, 4 Dec 2026 07:28:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 54EE2606A32C 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=qGl++TfN Received: from [10.94.176.68] (unknown [52.172.102.222]) by linux.microsoft.com (Postfix) with ESMTPSA id 8240C20B7171; Thu, 3 Dec 2026 23:28:07 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 8240C20B7171 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1796369307; bh=BJh/rWzP0axZN8fKMjYyuv1UY2sAbnNMKFEDJg/qcB8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=qGl++TfNDadeE8yCnhed38m+QqUrDVimhfsx6nAYrWkOFLWYNj96X4JqDyVqW8Un2 jysaDiizEjfVhjskUlGF9z7bG3TMAIkrGxzzkmYgb3U0Okr13T/ztgHNIAmxEb9Iwb etY9venelBiIdfUra0J7XnnRcahZdzuolt+xQZo4= Message-ID: <767a0c08-03dd-4f28-8a12-5bb54f915395@linux.microsoft.com> Date: Fri, 4 Dec 2026 12:58:05 +0530 X-Mailing-List: linux-s390@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 13/14] csky, cpu/hotplug: Update name & callbacks to match their 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-13-32e62361ce1d@csail.mit.edu> Content-Language: en-US From: Prasanna Kumar T S M In-Reply-To: <20261204-fix-cpuhp-state-names-v1-13-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 C-SKY PMU callbacks are registered at CPUHP_AP_PERF_CSKY_ONLINE, but > their callback function names include "starting" and "dying". This is > misleading because they suggest the earlier, interrupts-disabled > STARTING section, and not the ONLINE section where these callbacks > actually run. > > Rename csky_pmu_starting_cpu() to csky_pmu_cpu_online() and > csky_pmu_dying_cpu() to csky_pmu_cpu_offline(), to match the states that > they are associated with. > > Also, the state is named "AP_PERF_ONLINE", which is confusing, because > there is another state that is actually CPUHP_AP_PERF_ONLINE, which maps > to "perf:online". So, rename the C-SKY PMU state to "perf/csky:online" > following the naming convention documented in > Documentation/core-api/cpu_hotplug.rst. > > No functional change intended, except for the update to the name string, > which gets reflected in sysfs output and instrumentation. > > Fixes: f622fbf20596 ("csky: Add pmu interrupt support") > Signed-off-by: Srivatsa S. Bhat (Microsoft) > --- > arch/csky/kernel/perf_event.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/arch/csky/kernel/perf_event.c b/arch/csky/kernel/perf_event.c > index e0a36acd265b..1f786534832a 100644 > --- a/arch/csky/kernel/perf_event.c > +++ b/arch/csky/kernel/perf_event.c > @@ -1277,13 +1277,13 @@ int init_hw_perf_events(void) > return 0; > } > > -static int csky_pmu_starting_cpu(unsigned int cpu) > +static int csky_pmu_cpu_online(unsigned int cpu) > { > enable_percpu_irq(csky_pmu_irq, 0); > return 0; > } > > -static int csky_pmu_dying_cpu(unsigned int cpu) > +static int csky_pmu_cpu_offline(unsigned int cpu) > { > disable_percpu_irq(csky_pmu_irq); > return 0; > @@ -1318,9 +1318,9 @@ int csky_pmu_device_probe(struct platform_device *pdev, > pr_notice("[perf] PMU request irq fail!\n"); > } > > - ret = cpuhp_setup_state(CPUHP_AP_PERF_CSKY_ONLINE, "AP_PERF_ONLINE", > - csky_pmu_starting_cpu, > - csky_pmu_dying_cpu); > + ret = cpuhp_setup_state(CPUHP_AP_PERF_CSKY_ONLINE, "perf/csky:online", > + csky_pmu_cpu_online, > + csky_pmu_cpu_offline); > if (ret) { > csky_pmu_free_irq(); > free_percpu(csky_pmu.hw_events); > Looks good to me. Reviewed-by: Prasanna Kumar T S M