Re: [PATCH 11/14] optee, cpu/hotplug: Update name to match the CPU hotplug state

From: Prasanna Kumar T S M

Date: Fri Dec 04 2026 - 02:26:31 EST




On 04-12-2026 00:46, Srivatsa S. Bhat (Microsoft) wrote:
The per-CPU notification IRQ callbacks are registered at
CPUHP_AP_ONLINE_DYN, but their state name is
"optee/pcpu-notif:starting". This is misleading because the 'starting'
suffix denotes the earlier, interrupts-disabled STARTING section, and
not the ONLINE section.

Rename it to "optee/pcpu-notif: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: b3b4ced12c1b ("optee: add per cpu asynchronous notification")
Signed-off-by: Srivatsa S. Bhat (Microsoft) <srivatsa@xxxxxxxxxxxxx>
---
drivers/tee/optee/smc_abi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tee/optee/smc_abi.c b/drivers/tee/optee/smc_abi.c
index 51624443359b..152f51b526e6 100644
--- a/drivers/tee/optee/smc_abi.c
+++ b/drivers/tee/optee/smc_abi.c
@@ -1153,7 +1153,7 @@ static int init_pcpu_irq(struct optee *optee, u_int irq)
optee->smc.notif_irq = irq;
pcpu_irq_num = irq;
- rc = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "optee/pcpu-notif:starting",
+ rc = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "optee/pcpu-notif:online",
optee_cpuhp_enable_pcpu_irq,
optee_cpuhp_disable_pcpu_irq);
if (!rc)


Looks good to me.

Reviewed-by: Prasanna Kumar T S M <ptsm@xxxxxxxxxxxxxxxxxxx>