[PATCH 14/14] cpuidle/s390, cpu/hotplug: Update teardown callback to match its hotplug state

From: Srivatsa S. Bhat (Microsoft)

Date: Thu Dec 03 2026 - 14:21:25 EST


The s390 cpuidle teardown callback is registered at CPUHP_AP_ONLINE_DYN,
which belongs to the ONLINE section. However, its dead suffix suggests
that it runs in the PREPARE section on a control CPU, rather than in the
ONLINE section on the hotplugged CPU.

Rename s390_cpuidle_cpu_dead() to s390_cpuidle_cpu_offline() to match
the section where it runs.

No functional change intended.

Fixes: 01c162e27a05 ("s390/idle: Introduce cpuidle for s390")
Signed-off-by: Srivatsa S. Bhat (Microsoft) <srivatsa@xxxxxxxxxxxxx>
---
drivers/cpuidle/cpuidle-s390.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/cpuidle/cpuidle-s390.c b/drivers/cpuidle/cpuidle-s390.c
index 1d02a77ebce0..c07a42a7362d 100644
--- a/drivers/cpuidle/cpuidle-s390.c
+++ b/drivers/cpuidle/cpuidle-s390.c
@@ -55,7 +55,7 @@ static int s390_cpuidle_cpu_online(unsigned int cpu)
return rc;
}

-static int s390_cpuidle_cpu_dead(unsigned int cpu)
+static int s390_cpuidle_cpu_offline(unsigned int cpu)
{
struct cpuidle_device *dev = &per_cpu(cpuidle_dev, cpu);

@@ -104,7 +104,7 @@ static int __init s390_cpuidle_init(void)
rc = cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN,
"cpuidle/s390:online",
s390_cpuidle_cpu_online,
- s390_cpuidle_cpu_dead);
+ s390_cpuidle_cpu_offline);
if (rc < 0) {
cpuidle_unregister(&s390_cpuidle_driver);
pr_err("Failed to allocate hotplug state: cpuidle/s390:online\n");

--
2.43.0