[PATCH 00/14] treewide, cpu/hotplug: Align state and callback names with their sections

From: Srivatsa S. Bhat (Microsoft)

Date: Thu Dec 03 2026 - 14:17:42 EST


CPU hotplug state names should identify the section in which their
callbacks execute. Documentation/core-api/cpu_hotplug.rst distinguishes
PREPARE callbacks on a control CPU, STARTING callbacks on the hotplugged
CPU with interrupts disabled, and ONLINE callbacks in that CPU's hotplug
thread with interrupts and preemption enabled.

Currently, several CPU hotplug state registrations use name suffixes
that are mismatched from the sections where their callbacks actually
run. For example, the ZynqMP IPI mailbox driver registers
CPUHP_AP_ONLINE_DYN callbacks under "mailbox/sgi:starting". Hence, such
names can be misleading (ex: as viewed from
/sys/devices/system/cpu/hotplug/states) about the callbacks' execution
context. Callback function names can be similarly misleading even when
the registered state-name strings match with their hotplug state and
section.

This series corrects state-name strings and related callback identifiers
across the tree to fix mismatched instances.

No functional change is intended, apart from the renamed strings and
symbols appearing in sysfs output and instrumentation.

Thank you very much!

---
Srivatsa S. Bhat (Microsoft) (14):
mailbox/zynqmp, cpu/hotplug: Update name & callbacks to match their hotplug states
soc/xilinx, cpu/hotplug: Update name & callbacks to match their hotplug states
riscv, cpu/hotplug: Update name & callbacks to match their hotplug states
clocksource/drivers, hotplug: Update name & callbacks to match their hotplug states
cpuidle, cpu/hotplug: Update name & callbacks to match their hotplug states
firmware/arm_ffa, cpu/hotplug: Update name to match the hotplug state
coresight, cpu/hotplug: Update name & callbacks to match their hotplug states
irqchip/riscv-aplic, hotplug: Update name & callbacks to match their hotplug states
leds/trigger/cpu, hotplug: Update name & callbacks to match their hotplug states
powercap/dtpm_cpu, hotplug: Update name & callback to match the hotplug state
optee, cpu/hotplug: Update name to match the CPU hotplug state
debugobjects, cpu/hotplug: Update name & callback to match the hotplug state
csky, cpu/hotplug: Update name & callbacks to match their hotplug state
cpuidle/s390, cpu/hotplug: Update teardown callback to match its hotplug state

arch/csky/kernel/perf_event.c | 10 +++++-----
arch/riscv/kernel/cpu.c | 6 +++---
drivers/clocksource/timer-econet-en751221.c | 6 +++---
drivers/clocksource/timer-nxp-pit.c | 6 +++---
drivers/clocksource/timer-nxp-stm.c | 6 +++---
drivers/clocksource/timer-rtl-otto.c | 2 +-
drivers/clocksource/timer-rzn1.c | 10 +++++-----
drivers/cpuidle/cpuidle-psci.c | 10 +++++-----
drivers/cpuidle/cpuidle-riscv-sbi.c | 10 +++++-----
drivers/cpuidle/cpuidle-s390.c | 4 ++--
drivers/firmware/arm_ffa/driver.c | 2 +-
drivers/hwtracing/coresight/coresight-core.c | 6 +++---
drivers/irqchip/irq-riscv-aplic-direct.c | 10 +++++-----
drivers/leds/trigger/ledtrig-cpu.c | 8 ++++----
drivers/mailbox/zynqmp-ipi-mailbox.c | 8 ++++----
drivers/powercap/dtpm_cpu.c | 6 +++---
drivers/soc/xilinx/xlnx_event_manager.c | 8 ++++----
drivers/tee/optee/smc_abi.c | 2 +-
lib/debugobjects.c | 6 +++---
19 files changed, 63 insertions(+), 63 deletions(-)
---
base-commit: 9437ee8b6cf607e883b36e44bd755968daaebd48
change-id: 20261204-fix-cpuhp-state-names-5bba2ba2ba7b

Regards,
Srivatsa