Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH 00/14] treewide, cpu/hotplug: Align state and callback names with their sections
@ 2026-12-03 19:16 Srivatsa S. Bhat (Microsoft)
  2026-12-03 19:16 ` [PATCH 01/14] mailbox/zynqmp, cpu/hotplug: Update name & callbacks to match their hotplug states Srivatsa S. Bhat (Microsoft)
                   ` (13 more replies)
  0 siblings, 14 replies; 16+ messages in thread
From: Srivatsa S. Bhat (Microsoft) @ 2026-12-03 19:16 UTC (permalink / raw)
  To: 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, Björn Töpel, 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, linux-arm-kernel, Palmer Dabbelt, linux-riscv,
	linux-mips, linux-stm32, linux-renesas-soc, linux-pm, coresight,
	linux-leds, op-tee, linux-perf-users, linux-csky, linux-s390,
	Srivatsa S. Bhat, Prasanna Kumar T S M, Saurabh Sengar,
	Thara Gopinath

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


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2026-12-03 21:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 19:16 [PATCH 00/14] treewide, cpu/hotplug: Align state and callback names with their sections Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` [PATCH 01/14] mailbox/zynqmp, cpu/hotplug: Update name & callbacks to match their hotplug states Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` [PATCH 02/14] soc/xilinx, " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` [PATCH 03/14] riscv, " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` [PATCH 04/14] clocksource/drivers, hotplug: " Srivatsa S. Bhat (Microsoft)
2026-12-03 21:20   ` Herve Codina
2026-12-03 19:16 ` [PATCH 05/14] cpuidle, cpu/hotplug: " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` [PATCH 06/14] firmware/arm_ffa, cpu/hotplug: Update name to match the hotplug state Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` [PATCH 07/14] coresight, cpu/hotplug: Update name & callbacks to match their hotplug states Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` [PATCH 08/14] irqchip/riscv-aplic, hotplug: " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` [PATCH 09/14] leds/trigger/cpu, " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` [PATCH 10/14] powercap/dtpm_cpu, hotplug: Update name & callback to match the hotplug state Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` [PATCH 11/14] optee, cpu/hotplug: Update name to match the CPU " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` [PATCH 12/14] debugobjects, cpu/hotplug: Update name & callback to match the " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` [PATCH 13/14] csky, cpu/hotplug: Update name & callbacks to match their " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` [PATCH 14/14] cpuidle/s390, cpu/hotplug: Update teardown callback to match its " Srivatsa S. Bhat (Microsoft)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox