diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2016-12-21 14:19:54 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-12-25 04:47:44 -0500 |
commit | 73c1b41e63f040e92669e61a02c7893933bfe743 (patch) | |
tree | cde9545d0866b1c0df3abf5b53b6e78a7b22e083 | |
parent | 530e9b76ae8f863dfdef4a6ad0b38613d32e8c3f (diff) |
cpu/hotplug: Cleanup state names
When the state names got added a script was used to add the extra argument
to the calls. The script basically converted the state constant to a
string, but the cleanup to convert these strings into meaningful ones did
not happen.
Replace all the useless strings with 'subsys/xxx/yyy:state' strings which
are used in all the other places already.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sebastian Siewior <bigeasy@linutronix.de>
Link: http://lkml.kernel.org/r/20161221192112.085444152@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
59 files changed, 77 insertions, 77 deletions
diff --git a/arch/arm/kernel/smp_twd.c b/arch/arm/kernel/smp_twd.c index 02d5e5e8d44c..895ae5197159 100644 --- a/arch/arm/kernel/smp_twd.c +++ b/arch/arm/kernel/smp_twd.c | |||
@@ -339,7 +339,7 @@ static int __init twd_local_timer_common_register(struct device_node *np) | |||
339 | } | 339 | } |
340 | 340 | ||
341 | cpuhp_setup_state_nocalls(CPUHP_AP_ARM_TWD_STARTING, | 341 | cpuhp_setup_state_nocalls(CPUHP_AP_ARM_TWD_STARTING, |
342 | "AP_ARM_TWD_STARTING", | 342 | "arm/timer/twd:starting", |
343 | twd_timer_starting_cpu, twd_timer_dying_cpu); | 343 | twd_timer_starting_cpu, twd_timer_dying_cpu); |
344 | 344 | ||
345 | twd_get_clock(np); | 345 | twd_get_clock(np); |
diff --git a/arch/arm/mach-mvebu/coherency.c b/arch/arm/mach-mvebu/coherency.c index ae2a018b9305..8f8748a0c84f 100644 --- a/arch/arm/mach-mvebu/coherency.c +++ b/arch/arm/mach-mvebu/coherency.c | |||
@@ -148,7 +148,7 @@ static void __init armada_370_coherency_init(struct device_node *np) | |||
148 | of_node_put(cpu_config_np); | 148 | of_node_put(cpu_config_np); |
149 | 149 | ||
150 | cpuhp_setup_state_nocalls(CPUHP_AP_ARM_MVEBU_COHERENCY, | 150 | cpuhp_setup_state_nocalls(CPUHP_AP_ARM_MVEBU_COHERENCY, |
151 | "AP_ARM_MVEBU_COHERENCY", | 151 | "arm/mvebu/coherency:starting", |
152 | armada_xp_clear_l2_starting, NULL); | 152 | armada_xp_clear_l2_starting, NULL); |
153 | exit: | 153 | exit: |
154 | set_cpu_coherent(); | 154 | set_cpu_coherent(); |
diff --git a/arch/arm/mm/cache-l2x0-pmu.c b/arch/arm/mm/cache-l2x0-pmu.c index 976d3057272e..0a1e2280141f 100644 --- a/arch/arm/mm/cache-l2x0-pmu.c +++ b/arch/arm/mm/cache-l2x0-pmu.c | |||
@@ -563,7 +563,7 @@ static __init int l2x0_pmu_init(void) | |||
563 | 563 | ||
564 | cpumask_set_cpu(0, &pmu_cpu); | 564 | cpumask_set_cpu(0, &pmu_cpu); |
565 | ret = cpuhp_setup_state_nocalls(CPUHP_AP_PERF_ARM_L2X0_ONLINE, | 565 | ret = cpuhp_setup_state_nocalls(CPUHP_AP_PERF_ARM_L2X0_ONLINE, |
566 | "AP_PERF_ARM_L2X0_ONLINE", NULL, | 566 | "perf/arm/l2x0:online", NULL, |
567 | l2x0_pmu_offline_cpu); | 567 | l2x0_pmu_offline_cpu); |
568 | if (ret) | 568 | if (ret) |
569 | goto out_pmu; | 569 | goto out_pmu; |
diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c index d1870c777c6e..2290be390f87 100644 --- a/arch/arm/mm/cache-l2x0.c +++ b/arch/arm/mm/cache-l2x0.c | |||
@@ -683,7 +683,7 @@ static void __init l2c310_enable(void __iomem *base, unsigned num_lock) | |||
683 | 683 | ||
684 | if (aux & L310_AUX_CTRL_FULL_LINE_ZERO) | 684 | if (aux & L310_AUX_CTRL_FULL_LINE_ZERO) |
685 | cpuhp_setup_state(CPUHP_AP_ARM_L2X0_STARTING, | 685 | cpuhp_setup_state(CPUHP_AP_ARM_L2X0_STARTING, |
686 | "AP_ARM_L2X0_STARTING", l2c310_starting_cpu, | 686 | "arm/l2x0:starting", l2c310_starting_cpu, |
687 | l2c310_dying_cpu); | 687 | l2c310_dying_cpu); |
688 | } | 688 | } |
689 | 689 | ||
diff --git a/arch/arm/vfp/vfpmodule.c b/arch/arm/vfp/vfpmodule.c index 0351f5645fb1..569d5a650a4a 100644 --- a/arch/arm/vfp/vfpmodule.c +++ b/arch/arm/vfp/vfpmodule.c | |||
@@ -799,7 +799,7 @@ static int __init vfp_init(void) | |||
799 | } | 799 | } |
800 | 800 | ||
801 | cpuhp_setup_state_nocalls(CPUHP_AP_ARM_VFP_STARTING, | 801 | cpuhp_setup_state_nocalls(CPUHP_AP_ARM_VFP_STARTING, |
802 | "AP_ARM_VFP_STARTING", vfp_starting_cpu, | 802 | "arm/vfp:starting", vfp_starting_cpu, |
803 | vfp_dying_cpu); | 803 | vfp_dying_cpu); |
804 | 804 | ||
805 | vfp_vector = vfp_support_entry; | 805 | vfp_vector = vfp_support_entry; |
diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c index 4986dc0c1dff..11d9f2898b16 100644 --- a/arch/arm/xen/enlighten.c +++ b/arch/arm/xen/enlighten.c | |||
@@ -412,7 +412,7 @@ static int __init xen_guest_init(void) | |||
412 | pvclock_gtod_register_notifier(&xen_pvclock_gtod_notifier); | 412 | pvclock_gtod_register_notifier(&xen_pvclock_gtod_notifier); |
413 | 413 | ||
414 | return cpuhp_setup_state(CPUHP_AP_ARM_XEN_STARTING, | 414 | return cpuhp_setup_state(CPUHP_AP_ARM_XEN_STARTING, |
415 | "AP_ARM_XEN_STARTING", xen_starting_cpu, | 415 | "arm/xen:starting", xen_starting_cpu, |
416 | xen_dying_cpu); | 416 | xen_dying_cpu); |
417 | } | 417 | } |
418 | early_initcall(xen_guest_init); | 418 | early_initcall(xen_guest_init); |
diff --git a/arch/arm64/kernel/armv8_deprecated.c b/arch/arm64/kernel/armv8_deprecated.c index 04de188a36c9..a211addeb6bc 100644 --- a/arch/arm64/kernel/armv8_deprecated.c +++ b/arch/arm64/kernel/armv8_deprecated.c | |||
@@ -640,7 +640,7 @@ static int __init armv8_deprecated_init(void) | |||
640 | } | 640 | } |
641 | 641 | ||
642 | cpuhp_setup_state_nocalls(CPUHP_AP_ARM64_ISNDEP_STARTING, | 642 | cpuhp_setup_state_nocalls(CPUHP_AP_ARM64_ISNDEP_STARTING, |
643 | "AP_ARM64_ISNDEP_STARTING", | 643 | "arm64/isndep:starting", |
644 | run_all_insn_set_hw_mode, NULL); | 644 | run_all_insn_set_hw_mode, NULL); |
645 | register_insn_emulation_sysctl(ctl_abi); | 645 | register_insn_emulation_sysctl(ctl_abi); |
646 | 646 | ||
diff --git a/arch/arm64/kernel/debug-monitors.c b/arch/arm64/kernel/debug-monitors.c index 605df76f0a06..2bd426448fc1 100644 --- a/arch/arm64/kernel/debug-monitors.c +++ b/arch/arm64/kernel/debug-monitors.c | |||
@@ -140,7 +140,7 @@ static int clear_os_lock(unsigned int cpu) | |||
140 | static int debug_monitors_init(void) | 140 | static int debug_monitors_init(void) |
141 | { | 141 | { |
142 | return cpuhp_setup_state(CPUHP_AP_ARM64_DEBUG_MONITORS_STARTING, | 142 | return cpuhp_setup_state(CPUHP_AP_ARM64_DEBUG_MONITORS_STARTING, |
143 | "CPUHP_AP_ARM64_DEBUG_MONITORS_STARTING", | 143 | "arm64/debug_monitors:starting", |
144 | clear_os_lock, NULL); | 144 | clear_os_lock, NULL); |
145 | } | 145 | } |
146 | postcore_initcall(debug_monitors_init); | 146 | postcore_initcall(debug_monitors_init); |
diff --git a/arch/arm64/kernel/hw_breakpoint.c b/arch/arm64/kernel/hw_breakpoint.c index 1b3c747fedda..0296e7924240 100644 --- a/arch/arm64/kernel/hw_breakpoint.c +++ b/arch/arm64/kernel/hw_breakpoint.c | |||
@@ -1001,7 +1001,7 @@ static int __init arch_hw_breakpoint_init(void) | |||
1001 | * debugger will leave the world in a nice state for us. | 1001 | * debugger will leave the world in a nice state for us. |
1002 | */ | 1002 | */ |
1003 | ret = cpuhp_setup_state(CPUHP_AP_PERF_ARM_HW_BREAKPOINT_STARTING, | 1003 | ret = cpuhp_setup_state(CPUHP_AP_PERF_ARM_HW_BREAKPOINT_STARTING, |
1004 | "CPUHP_AP_PERF_ARM_HW_BREAKPOINT_STARTING", | 1004 | "perf/arm64/hw_breakpoint:starting", |
1005 | hw_breakpoint_reset, NULL); | 1005 | hw_breakpoint_reset, NULL); |
1006 | if (ret) | 1006 | if (ret) |
1007 | pr_err("failed to register CPU hotplug notifier: %d\n", ret); | 1007 | pr_err("failed to register CPU hotplug notifier: %d\n", ret); |
diff --git a/arch/blackfin/kernel/perf_event.c b/arch/blackfin/kernel/perf_event.c index 6355e97d22b9..6a9524ad04a5 100644 --- a/arch/blackfin/kernel/perf_event.c +++ b/arch/blackfin/kernel/perf_event.c | |||
@@ -475,7 +475,7 @@ static int __init bfin_pmu_init(void) | |||
475 | 475 | ||
476 | ret = perf_pmu_register(&pmu, "cpu", PERF_TYPE_RAW); | 476 | ret = perf_pmu_register(&pmu, "cpu", PERF_TYPE_RAW); |
477 | if (!ret) | 477 | if (!ret) |
478 | cpuhp_setup_state(CPUHP_PERF_BFIN, "PERF_BFIN", | 478 | cpuhp_setup_state(CPUHP_PERF_BFIN,"perf/bfin:starting", |
479 | bfin_pmu_prepare_cpu, NULL); | 479 | bfin_pmu_prepare_cpu, NULL); |
480 | return ret; | 480 | return ret; |
481 | } | 481 | } |
diff --git a/arch/metag/kernel/perf/perf_event.c b/arch/metag/kernel/perf/perf_event.c index 052cba23708c..7e793eb0c1fe 100644 --- a/arch/metag/kernel/perf/perf_event.c +++ b/arch/metag/kernel/perf/perf_event.c | |||
@@ -868,7 +868,7 @@ static int __init init_hw_perf_events(void) | |||
868 | metag_out32(0, PERF_COUNT(1)); | 868 | metag_out32(0, PERF_COUNT(1)); |
869 | 869 | ||
870 | cpuhp_setup_state(CPUHP_AP_PERF_METAG_STARTING, | 870 | cpuhp_setup_state(CPUHP_AP_PERF_METAG_STARTING, |
871 | "AP_PERF_METAG_STARTING", metag_pmu_starting_cpu, | 871 | "perf/metag:starting", metag_pmu_starting_cpu, |
872 | NULL); | 872 | NULL); |
873 | 873 | ||
874 | ret = perf_pmu_register(&pmu, metag_pmu->name, PERF_TYPE_RAW); | 874 | ret = perf_pmu_register(&pmu, metag_pmu->name, PERF_TYPE_RAW); |
diff --git a/arch/mips/kernel/pm-cps.c b/arch/mips/kernel/pm-cps.c index 7cf653e21423..5f928c34c148 100644 --- a/arch/mips/kernel/pm-cps.c +++ b/arch/mips/kernel/pm-cps.c | |||
@@ -713,7 +713,7 @@ static int __init cps_pm_init(void) | |||
713 | pr_warn("pm-cps: no CPC, clock & power gating unavailable\n"); | 713 | pr_warn("pm-cps: no CPC, clock & power gating unavailable\n"); |
714 | } | 714 | } |
715 | 715 | ||
716 | return cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "AP_PM_CPS_CPU_ONLINE", | 716 | return cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "mips/cps_pm:online", |
717 | cps_pm_online_cpu, NULL); | 717 | cps_pm_online_cpu, NULL); |
718 | } | 718 | } |
719 | arch_initcall(cps_pm_init); | 719 | arch_initcall(cps_pm_init); |
diff --git a/arch/mips/oprofile/op_model_loongson3.c b/arch/mips/oprofile/op_model_loongson3.c index 85f3ee4ab456..d60d97b6113d 100644 --- a/arch/mips/oprofile/op_model_loongson3.c +++ b/arch/mips/oprofile/op_model_loongson3.c | |||
@@ -186,7 +186,7 @@ static int __init loongson3_init(void) | |||
186 | { | 186 | { |
187 | on_each_cpu(reset_counters, NULL, 1); | 187 | on_each_cpu(reset_counters, NULL, 1); |
188 | cpuhp_setup_state_nocalls(CPUHP_AP_MIPS_OP_LOONGSON3_STARTING, | 188 | cpuhp_setup_state_nocalls(CPUHP_AP_MIPS_OP_LOONGSON3_STARTING, |
189 | "AP_MIPS_OP_LOONGSON3_STARTING", | 189 | "mips/oprofile/loongson3:starting", |
190 | loongson3_starting_cpu, loongson3_dying_cpu); | 190 | loongson3_starting_cpu, loongson3_dying_cpu); |
191 | save_perf_irq = perf_irq; | 191 | save_perf_irq = perf_irq; |
192 | perf_irq = loongson3_perfcount_handler; | 192 | perf_irq = loongson3_perfcount_handler; |
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index 0cb6bd8bfccf..b1099cb2f393 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c | |||
@@ -944,7 +944,7 @@ void __init initmem_init(void) | |||
944 | * _nocalls() + manual invocation is used because cpuhp is not yet | 944 | * _nocalls() + manual invocation is used because cpuhp is not yet |
945 | * initialized for the boot CPU. | 945 | * initialized for the boot CPU. |
946 | */ | 946 | */ |
947 | cpuhp_setup_state_nocalls(CPUHP_POWER_NUMA_PREPARE, "POWER_NUMA_PREPARE", | 947 | cpuhp_setup_state_nocalls(CPUHP_POWER_NUMA_PREPARE, "powerpc/numa:prepare", |
948 | ppc_numa_cpu_prepare, ppc_numa_cpu_dead); | 948 | ppc_numa_cpu_prepare, ppc_numa_cpu_dead); |
949 | for_each_present_cpu(cpu) | 949 | for_each_present_cpu(cpu) |
950 | numa_setup_cpu(cpu); | 950 | numa_setup_cpu(cpu); |
diff --git a/arch/powerpc/perf/core-book3s.c b/arch/powerpc/perf/core-book3s.c index 72c27b8d2cf3..fd3e4034c04d 100644 --- a/arch/powerpc/perf/core-book3s.c +++ b/arch/powerpc/perf/core-book3s.c | |||
@@ -2189,7 +2189,7 @@ int register_power_pmu(struct power_pmu *pmu) | |||
2189 | #endif /* CONFIG_PPC64 */ | 2189 | #endif /* CONFIG_PPC64 */ |
2190 | 2190 | ||
2191 | perf_pmu_register(&power_pmu, "cpu", PERF_TYPE_RAW); | 2191 | perf_pmu_register(&power_pmu, "cpu", PERF_TYPE_RAW); |
2192 | cpuhp_setup_state(CPUHP_PERF_POWER, "PERF_POWER", | 2192 | cpuhp_setup_state(CPUHP_PERF_POWER, "perf/powerpc:prepare", |
2193 | power_pmu_prepare_cpu, NULL); | 2193 | power_pmu_prepare_cpu, NULL); |
2194 | return 0; | 2194 | return 0; |
2195 | } | 2195 | } |
diff --git a/arch/s390/kernel/perf_cpum_cf.c b/arch/s390/kernel/perf_cpum_cf.c index 037c2a253ae4..1aba10e90906 100644 --- a/arch/s390/kernel/perf_cpum_cf.c +++ b/arch/s390/kernel/perf_cpum_cf.c | |||
@@ -711,7 +711,7 @@ static int __init cpumf_pmu_init(void) | |||
711 | return rc; | 711 | return rc; |
712 | } | 712 | } |
713 | return cpuhp_setup_state(CPUHP_AP_PERF_S390_CF_ONLINE, | 713 | return cpuhp_setup_state(CPUHP_AP_PERF_S390_CF_ONLINE, |
714 | "AP_PERF_S390_CF_ONLINE", | 714 | "perf/s390/cf:online", |
715 | s390_pmu_online_cpu, s390_pmu_offline_cpu); | 715 | s390_pmu_online_cpu, s390_pmu_offline_cpu); |
716 | } | 716 | } |
717 | early_initcall(cpumf_pmu_init); | 717 | early_initcall(cpumf_pmu_init); |
diff --git a/arch/s390/kernel/perf_cpum_sf.c b/arch/s390/kernel/perf_cpum_sf.c index 763dec18edcd..1c0b58545c04 100644 --- a/arch/s390/kernel/perf_cpum_sf.c +++ b/arch/s390/kernel/perf_cpum_sf.c | |||
@@ -1623,7 +1623,7 @@ static int __init init_cpum_sampling_pmu(void) | |||
1623 | goto out; | 1623 | goto out; |
1624 | } | 1624 | } |
1625 | 1625 | ||
1626 | cpuhp_setup_state(CPUHP_AP_PERF_S390_SF_ONLINE, "AP_PERF_S390_SF_ONLINE", | 1626 | cpuhp_setup_state(CPUHP_AP_PERF_S390_SF_ONLINE, "perf/s390/sf:online", |
1627 | s390_pmu_sf_online_cpu, s390_pmu_sf_offline_cpu); | 1627 | s390_pmu_sf_online_cpu, s390_pmu_sf_offline_cpu); |
1628 | out: | 1628 | out: |
1629 | return err; | 1629 | return err; |
diff --git a/arch/x86/entry/vdso/vma.c b/arch/x86/entry/vdso/vma.c index 40121d14d34d..10820f6cefbf 100644 --- a/arch/x86/entry/vdso/vma.c +++ b/arch/x86/entry/vdso/vma.c | |||
@@ -371,7 +371,7 @@ static int __init init_vdso(void) | |||
371 | 371 | ||
372 | /* notifier priority > KVM */ | 372 | /* notifier priority > KVM */ |
373 | return cpuhp_setup_state(CPUHP_AP_X86_VDSO_VMA_ONLINE, | 373 | return cpuhp_setup_state(CPUHP_AP_X86_VDSO_VMA_ONLINE, |
374 | "AP_X86_VDSO_VMA_ONLINE", vgetcpu_online, NULL); | 374 | "x86/vdso/vma:online", vgetcpu_online, NULL); |
375 | } | 375 | } |
376 | subsys_initcall(init_vdso); | 376 | subsys_initcall(init_vdso); |
377 | #endif /* CONFIG_X86_64 */ | 377 | #endif /* CONFIG_X86_64 */ |
diff --git a/arch/x86/events/amd/ibs.c b/arch/x86/events/amd/ibs.c index b26ee32f73e8..05612a2529c8 100644 --- a/arch/x86/events/amd/ibs.c +++ b/arch/x86/events/amd/ibs.c | |||
@@ -1010,7 +1010,7 @@ static __init int amd_ibs_init(void) | |||
1010 | * all online cpus. | 1010 | * all online cpus. |
1011 | */ | 1011 | */ |
1012 | cpuhp_setup_state(CPUHP_AP_PERF_X86_AMD_IBS_STARTING, | 1012 | cpuhp_setup_state(CPUHP_AP_PERF_X86_AMD_IBS_STARTING, |
1013 | "AP_PERF_X86_AMD_IBS_STARTING", | 1013 | "perf/x86/amd/ibs:STARTING", |
1014 | x86_pmu_amd_ibs_starting_cpu, | 1014 | x86_pmu_amd_ibs_starting_cpu, |
1015 | x86_pmu_amd_ibs_dying_cpu); | 1015 | x86_pmu_amd_ibs_dying_cpu); |
1016 | 1016 | ||
diff --git a/arch/x86/events/amd/power.c b/arch/x86/events/amd/power.c index 9842270ed2f2..a6eee5ac4f58 100644 --- a/arch/x86/events/amd/power.c +++ b/arch/x86/events/amd/power.c | |||
@@ -291,7 +291,7 @@ static int __init amd_power_pmu_init(void) | |||
291 | 291 | ||
292 | 292 | ||
293 | cpuhp_setup_state(CPUHP_AP_PERF_X86_AMD_POWER_ONLINE, | 293 | cpuhp_setup_state(CPUHP_AP_PERF_X86_AMD_POWER_ONLINE, |
294 | "AP_PERF_X86_AMD_POWER_ONLINE", | 294 | "perf/x86/amd/power:online", |
295 | power_cpu_init, power_cpu_exit); | 295 | power_cpu_init, power_cpu_exit); |
296 | 296 | ||
297 | ret = perf_pmu_register(&pmu_class, "power", -1); | 297 | ret = perf_pmu_register(&pmu_class, "power", -1); |
diff --git a/arch/x86/events/amd/uncore.c b/arch/x86/events/amd/uncore.c index 65577f081d07..a0b1bdb3ad42 100644 --- a/arch/x86/events/amd/uncore.c +++ b/arch/x86/events/amd/uncore.c | |||
@@ -527,16 +527,16 @@ static int __init amd_uncore_init(void) | |||
527 | * Install callbacks. Core will call them for each online cpu. | 527 | * Install callbacks. Core will call them for each online cpu. |
528 | */ | 528 | */ |
529 | if (cpuhp_setup_state(CPUHP_PERF_X86_AMD_UNCORE_PREP, | 529 | if (cpuhp_setup_state(CPUHP_PERF_X86_AMD_UNCORE_PREP, |
530 | "PERF_X86_AMD_UNCORE_PREP", | 530 | "perf/x86/amd/uncore:prepare", |
531 | amd_uncore_cpu_up_prepare, amd_uncore_cpu_dead)) | 531 | amd_uncore_cpu_up_prepare, amd_uncore_cpu_dead)) |
532 | goto fail_l2; | 532 | goto fail_l2; |
533 | 533 | ||
534 | if (cpuhp_setup_state(CPUHP_AP_PERF_X86_AMD_UNCORE_STARTING, | 534 | if (cpuhp_setup_state(CPUHP_AP_PERF_X86_AMD_UNCORE_STARTING, |
535 | "AP_PERF_X86_AMD_UNCORE_STARTING", | 535 | "perf/x86/amd/uncore:starting", |
536 | amd_uncore_cpu_starting, NULL)) | 536 | amd_uncore_cpu_starting, NULL)) |
537 | goto fail_prep; | 537 | goto fail_prep; |
538 | if (cpuhp_setup_state(CPUHP_AP_PERF_X86_AMD_UNCORE_ONLINE, | 538 | if (cpuhp_setup_state(CPUHP_AP_PERF_X86_AMD_UNCORE_ONLINE, |
539 | "AP_PERF_X86_AMD_UNCORE_ONLINE", | 539 | "perf/x86/amd/uncore:online", |
540 | amd_uncore_cpu_online, | 540 | amd_uncore_cpu_online, |
541 | amd_uncore_cpu_down_prepare)) | 541 | amd_uncore_cpu_down_prepare)) |
542 | goto fail_start; | 542 | goto fail_start; |
diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c index f1c22584a46f..019c5887b698 100644 --- a/arch/x86/events/core.c +++ b/arch/x86/events/core.c | |||
@@ -1820,18 +1820,18 @@ static int __init init_hw_perf_events(void) | |||
1820 | * Install callbacks. Core will call them for each online | 1820 | * Install callbacks. Core will call them for each online |
1821 | * cpu. | 1821 | * cpu. |
1822 | */ | 1822 | */ |
1823 | err = cpuhp_setup_state(CPUHP_PERF_X86_PREPARE, "PERF_X86_PREPARE", | 1823 | err = cpuhp_setup_state(CPUHP_PERF_X86_PREPARE, "perf/x86:prepare", |
1824 | x86_pmu_prepare_cpu, x86_pmu_dead_cpu); | 1824 | x86_pmu_prepare_cpu, x86_pmu_dead_cpu); |
1825 | if (err) | 1825 | if (err) |
1826 | return err; | 1826 | return err; |
1827 | 1827 | ||
1828 | err = cpuhp_setup_state(CPUHP_AP_PERF_X86_STARTING, | 1828 | err = cpuhp_setup_state(CPUHP_AP_PERF_X86_STARTING, |
1829 | "AP_PERF_X86_STARTING", x86_pmu_starting_cpu, | 1829 | "perf/x86:starting", x86_pmu_starting_cpu, |
1830 | x86_pmu_dying_cpu); | 1830 | x86_pmu_dying_cpu); |
1831 | if (err) | 1831 | if (err) |
1832 | goto out; | 1832 | goto out; |
1833 | 1833 | ||
1834 | err = cpuhp_setup_state(CPUHP_AP_PERF_X86_ONLINE, "AP_PERF_X86_ONLINE", | 1834 | err = cpuhp_setup_state(CPUHP_AP_PERF_X86_ONLINE, "perf/x86:online", |
1835 | x86_pmu_online_cpu, NULL); | 1835 | x86_pmu_online_cpu, NULL); |
1836 | if (err) | 1836 | if (err) |
1837 | goto out1; | 1837 | goto out1; |
diff --git a/arch/x86/events/intel/cqm.c b/arch/x86/events/intel/cqm.c index 0c45cc8e64ba..8c00dc09a5d2 100644 --- a/arch/x86/events/intel/cqm.c +++ b/arch/x86/events/intel/cqm.c | |||
@@ -1747,9 +1747,9 @@ static int __init intel_cqm_init(void) | |||
1747 | * is enabled to avoid notifier leak. | 1747 | * is enabled to avoid notifier leak. |
1748 | */ | 1748 | */ |
1749 | cpuhp_setup_state(CPUHP_AP_PERF_X86_CQM_STARTING, | 1749 | cpuhp_setup_state(CPUHP_AP_PERF_X86_CQM_STARTING, |
1750 | "AP_PERF_X86_CQM_STARTING", | 1750 | "perf/x86/cqm:starting", |
1751 | intel_cqm_cpu_starting, NULL); | 1751 | intel_cqm_cpu_starting, NULL); |
1752 | cpuhp_setup_state(CPUHP_AP_PERF_X86_CQM_ONLINE, "AP_PERF_X86_CQM_ONLINE", | 1752 | cpuhp_setup_state(CPUHP_AP_PERF_X86_CQM_ONLINE, "perf/x86/cqm:online", |
1753 | NULL, intel_cqm_cpu_exit); | 1753 | NULL, intel_cqm_cpu_exit); |
1754 | 1754 | ||
1755 | out: | 1755 | out: |
diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/events/intel/rapl.c index 0a535cea8ff3..bd34124449b0 100644 --- a/arch/x86/events/intel/rapl.c +++ b/arch/x86/events/intel/rapl.c | |||
@@ -803,13 +803,13 @@ static int __init rapl_pmu_init(void) | |||
803 | * Install callbacks. Core will call them for each online cpu. | 803 | * Install callbacks. Core will call them for each online cpu. |
804 | */ | 804 | */ |
805 | 805 | ||
806 | ret = cpuhp_setup_state(CPUHP_PERF_X86_RAPL_PREP, "PERF_X86_RAPL_PREP", | 806 | ret = cpuhp_setup_state(CPUHP_PERF_X86_RAPL_PREP, "perf/x86/rapl:prepare", |
807 | rapl_cpu_prepare, NULL); | 807 | rapl_cpu_prepare, NULL); |
808 | if (ret) | 808 | if (ret) |
809 | goto out; | 809 | goto out; |
810 | 810 | ||
811 | ret = cpuhp_setup_state(CPUHP_AP_PERF_X86_RAPL_ONLINE, | 811 | ret = cpuhp_setup_state(CPUHP_AP_PERF_X86_RAPL_ONLINE, |
812 | "AP_PERF_X86_RAPL_ONLINE", | 812 | "perf/x86/rapl:online", |
813 | rapl_cpu_online, rapl_cpu_offline); | 813 | rapl_cpu_online, rapl_cpu_offline); |
814 | if (ret) | 814 | if (ret) |
815 | goto out1; | 815 | goto out1; |
diff --git a/arch/x86/events/intel/uncore.c b/arch/x86/events/intel/uncore.c index dbaaf7dc8373..97c246f84dea 100644 --- a/arch/x86/events/intel/uncore.c +++ b/arch/x86/events/intel/uncore.c | |||
@@ -1398,22 +1398,22 @@ static int __init intel_uncore_init(void) | |||
1398 | */ | 1398 | */ |
1399 | if (!cret) { | 1399 | if (!cret) { |
1400 | ret = cpuhp_setup_state(CPUHP_PERF_X86_UNCORE_PREP, | 1400 | ret = cpuhp_setup_state(CPUHP_PERF_X86_UNCORE_PREP, |
1401 | "PERF_X86_UNCORE_PREP", | 1401 | "perf/x86/intel/uncore:prepare", |
1402 | uncore_cpu_prepare, NULL); | 1402 | uncore_cpu_prepare, NULL); |
1403 | if (ret) | 1403 | if (ret) |
1404 | goto err; | 1404 | goto err; |
1405 | } else { | 1405 | } else { |
1406 | cpuhp_setup_state_nocalls(CPUHP_PERF_X86_UNCORE_PREP, | 1406 | cpuhp_setup_state_nocalls(CPUHP_PERF_X86_UNCORE_PREP, |
1407 | "PERF_X86_UNCORE_PREP", | 1407 | "perf/x86/intel/uncore:prepare", |
1408 | uncore_cpu_prepare, NULL); | 1408 | uncore_cpu_prepare, NULL); |
1409 | } | 1409 | } |
1410 | first_init = 1; | 1410 | first_init = 1; |
1411 | cpuhp_setup_state(CPUHP_AP_PERF_X86_UNCORE_STARTING, | 1411 | cpuhp_setup_state(CPUHP_AP_PERF_X86_UNCORE_STARTING, |
1412 | "AP_PERF_X86_UNCORE_STARTING", | 1412 | "perf/x86/uncore:starting", |
1413 | uncore_cpu_starting, uncore_cpu_dying); | 1413 | uncore_cpu_starting, uncore_cpu_dying); |
1414 | first_init = 0; | 1414 | first_init = 0; |
1415 | cpuhp_setup_state(CPUHP_AP_PERF_X86_UNCORE_ONLINE, | 1415 | cpuhp_setup_state(CPUHP_AP_PERF_X86_UNCORE_ONLINE, |
1416 | "AP_PERF_X86_UNCORE_ONLINE", | 1416 | "perf/x86/uncore:online", |
1417 | uncore_event_cpu_online, uncore_event_cpu_offline); | 1417 | uncore_event_cpu_online, uncore_event_cpu_offline); |
1418 | return 0; | 1418 | return 0; |
1419 | 1419 | ||
diff --git a/arch/x86/kernel/apb_timer.c b/arch/x86/kernel/apb_timer.c index 456316f6c868..202a7817beaf 100644 --- a/arch/x86/kernel/apb_timer.c +++ b/arch/x86/kernel/apb_timer.c | |||
@@ -234,7 +234,7 @@ static __init int apbt_late_init(void) | |||
234 | if (intel_mid_timer_options == INTEL_MID_TIMER_LAPIC_APBT || | 234 | if (intel_mid_timer_options == INTEL_MID_TIMER_LAPIC_APBT || |
235 | !apb_timer_block_enabled) | 235 | !apb_timer_block_enabled) |
236 | return 0; | 236 | return 0; |
237 | return cpuhp_setup_state(CPUHP_X86_APB_DEAD, "X86_APB_DEAD", NULL, | 237 | return cpuhp_setup_state(CPUHP_X86_APB_DEAD, "x86/apb:dead", NULL, |
238 | apbt_cpu_dead); | 238 | apbt_cpu_dead); |
239 | } | 239 | } |
240 | fs_initcall(apbt_late_init); | 240 | fs_initcall(apbt_late_init); |
diff --git a/arch/x86/kernel/apic/x2apic_cluster.c b/arch/x86/kernel/apic/x2apic_cluster.c index 200af5ae9662..5a35f208ed95 100644 --- a/arch/x86/kernel/apic/x2apic_cluster.c +++ b/arch/x86/kernel/apic/x2apic_cluster.c | |||
@@ -191,7 +191,7 @@ static int x2apic_cluster_probe(void) | |||
191 | if (!x2apic_mode) | 191 | if (!x2apic_mode) |
192 | return 0; | 192 | return 0; |
193 | 193 | ||
194 | ret = cpuhp_setup_state(CPUHP_X2APIC_PREPARE, "X2APIC_PREPARE", | 194 | ret = cpuhp_setup_state(CPUHP_X2APIC_PREPARE, "x86/x2apic:prepare", |
195 | x2apic_prepare_cpu, x2apic_dead_cpu); | 195 | x2apic_prepare_cpu, x2apic_dead_cpu); |
196 | if (ret < 0) { | 196 | if (ret < 0) { |
197 | pr_err("Failed to register X2APIC_PREPARE\n"); | 197 | pr_err("Failed to register X2APIC_PREPARE\n"); |
diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c index 274fab99169d..38c8fd684d38 100644 --- a/arch/x86/kernel/hpet.c +++ b/arch/x86/kernel/hpet.c | |||
@@ -1051,11 +1051,11 @@ static __init int hpet_late_init(void) | |||
1051 | return 0; | 1051 | return 0; |
1052 | 1052 | ||
1053 | /* This notifier should be called after workqueue is ready */ | 1053 | /* This notifier should be called after workqueue is ready */ |
1054 | ret = cpuhp_setup_state(CPUHP_AP_X86_HPET_ONLINE, "AP_X86_HPET_ONLINE", | 1054 | ret = cpuhp_setup_state(CPUHP_AP_X86_HPET_ONLINE, "x86/hpet:online", |
1055 | hpet_cpuhp_online, NULL); | 1055 | hpet_cpuhp_online, NULL); |
1056 | if (ret) | 1056 | if (ret) |
1057 | return ret; | 1057 | return ret; |
1058 | ret = cpuhp_setup_state(CPUHP_X86_HPET_DEAD, "X86_HPET_DEAD", NULL, | 1058 | ret = cpuhp_setup_state(CPUHP_X86_HPET_DEAD, "x86/hpet:dead", NULL, |
1059 | hpet_cpuhp_dead); | 1059 | hpet_cpuhp_dead); |
1060 | if (ret) | 1060 | if (ret) |
1061 | goto err_cpuhp; | 1061 | goto err_cpuhp; |
diff --git a/arch/x86/kernel/tboot.c b/arch/x86/kernel/tboot.c index 8402907825b0..b868fa1b812b 100644 --- a/arch/x86/kernel/tboot.c +++ b/arch/x86/kernel/tboot.c | |||
@@ -408,7 +408,7 @@ static __init int tboot_late_init(void) | |||
408 | tboot_create_trampoline(); | 408 | tboot_create_trampoline(); |
409 | 409 | ||
410 | atomic_set(&ap_wfs_count, 0); | 410 | atomic_set(&ap_wfs_count, 0); |
411 | cpuhp_setup_state(CPUHP_AP_X86_TBOOT_DYING, "AP_X86_TBOOT_DYING", NULL, | 411 | cpuhp_setup_state(CPUHP_AP_X86_TBOOT_DYING, "x86/tboot:dying", NULL, |
412 | tboot_dying_cpu); | 412 | tboot_dying_cpu); |
413 | #ifdef CONFIG_DEBUG_FS | 413 | #ifdef CONFIG_DEBUG_FS |
414 | debugfs_create_file("tboot_log", S_IRUSR, | 414 | debugfs_create_file("tboot_log", S_IRUSR, |
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 445c51b6cf6d..6414fa6cb9fd 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -5855,7 +5855,7 @@ static void kvm_timer_init(void) | |||
5855 | } | 5855 | } |
5856 | pr_debug("kvm: max_tsc_khz = %ld\n", max_tsc_khz); | 5856 | pr_debug("kvm: max_tsc_khz = %ld\n", max_tsc_khz); |
5857 | 5857 | ||
5858 | cpuhp_setup_state(CPUHP_AP_X86_KVM_CLK_ONLINE, "AP_X86_KVM_CLK_ONLINE", | 5858 | cpuhp_setup_state(CPUHP_AP_X86_KVM_CLK_ONLINE, "x86/kvm/clk:online", |
5859 | kvmclock_cpu_online, kvmclock_cpu_down_prep); | 5859 | kvmclock_cpu_online, kvmclock_cpu_down_prep); |
5860 | } | 5860 | } |
5861 | 5861 | ||
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index ced7027b3fbc..51ef95232725 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c | |||
@@ -1529,11 +1529,11 @@ static int xen_cpuhp_setup(void) | |||
1529 | int rc; | 1529 | int rc; |
1530 | 1530 | ||
1531 | rc = cpuhp_setup_state_nocalls(CPUHP_XEN_PREPARE, | 1531 | rc = cpuhp_setup_state_nocalls(CPUHP_XEN_PREPARE, |
1532 | "XEN_HVM_GUEST_PREPARE", | 1532 | "x86/xen/hvm_guest:prepare", |
1533 | xen_cpu_up_prepare, xen_cpu_dead); | 1533 | xen_cpu_up_prepare, xen_cpu_dead); |
1534 | if (rc >= 0) { | 1534 | if (rc >= 0) { |
1535 | rc = cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN, | 1535 | rc = cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN, |
1536 | "XEN_HVM_GUEST_ONLINE", | 1536 | "x86/xen/hvm_guest:online", |
1537 | xen_cpu_up_online, NULL); | 1537 | xen_cpu_up_online, NULL); |
1538 | if (rc < 0) | 1538 | if (rc < 0) |
1539 | cpuhp_remove_state_nocalls(CPUHP_XEN_PREPARE); | 1539 | cpuhp_remove_state_nocalls(CPUHP_XEN_PREPARE); |
diff --git a/arch/xtensa/kernel/perf_event.c b/arch/xtensa/kernel/perf_event.c index 0fecc8a2c0b5..ff1d81385ed7 100644 --- a/arch/xtensa/kernel/perf_event.c +++ b/arch/xtensa/kernel/perf_event.c | |||
@@ -422,7 +422,7 @@ static int __init xtensa_pmu_init(void) | |||
422 | int irq = irq_create_mapping(NULL, XCHAL_PROFILING_INTERRUPT); | 422 | int irq = irq_create_mapping(NULL, XCHAL_PROFILING_INTERRUPT); |
423 | 423 | ||
424 | ret = cpuhp_setup_state(CPUHP_AP_PERF_XTENSA_STARTING, | 424 | ret = cpuhp_setup_state(CPUHP_AP_PERF_XTENSA_STARTING, |
425 | "AP_PERF_XTENSA_STARTING", xtensa_pmu_setup, | 425 | "perf/xtensa:starting", xtensa_pmu_setup, |
426 | NULL); | 426 | NULL); |
427 | if (ret) { | 427 | if (ret) { |
428 | pr_err("xtensa_pmu: failed to register CPU-hotplug.\n"); | 428 | pr_err("xtensa_pmu: failed to register CPU-hotplug.\n"); |
diff --git a/drivers/bus/arm-cci.c b/drivers/bus/arm-cci.c index 231633328dfa..c49da15d9790 100644 --- a/drivers/bus/arm-cci.c +++ b/drivers/bus/arm-cci.c | |||
@@ -1796,7 +1796,7 @@ static int __init cci_platform_init(void) | |||
1796 | int ret; | 1796 | int ret; |
1797 | 1797 | ||
1798 | ret = cpuhp_setup_state_multi(CPUHP_AP_PERF_ARM_CCI_ONLINE, | 1798 | ret = cpuhp_setup_state_multi(CPUHP_AP_PERF_ARM_CCI_ONLINE, |
1799 | "AP_PERF_ARM_CCI_ONLINE", NULL, | 1799 | "perf/arm/cci:online", NULL, |
1800 | cci_pmu_offline_cpu); | 1800 | cci_pmu_offline_cpu); |
1801 | if (ret) | 1801 | if (ret) |
1802 | return ret; | 1802 | return ret; |
diff --git a/drivers/bus/arm-ccn.c b/drivers/bus/arm-ccn.c index aee83462b796..4d6a2b7e4d3f 100644 --- a/drivers/bus/arm-ccn.c +++ b/drivers/bus/arm-ccn.c | |||
@@ -1562,7 +1562,7 @@ static int __init arm_ccn_init(void) | |||
1562 | int i, ret; | 1562 | int i, ret; |
1563 | 1563 | ||
1564 | ret = cpuhp_setup_state_multi(CPUHP_AP_PERF_ARM_CCN_ONLINE, | 1564 | ret = cpuhp_setup_state_multi(CPUHP_AP_PERF_ARM_CCN_ONLINE, |
1565 | "AP_PERF_ARM_CCN_ONLINE", NULL, | 1565 | "perf/arm/ccn:online", NULL, |
1566 | arm_ccn_pmu_offline_cpu); | 1566 | arm_ccn_pmu_offline_cpu); |
1567 | if (ret) | 1567 | if (ret) |
1568 | return ret; | 1568 | return ret; |
diff --git a/drivers/clocksource/arc_timer.c b/drivers/clocksource/arc_timer.c index a49748d826c0..2b7e87134d1a 100644 --- a/drivers/clocksource/arc_timer.c +++ b/drivers/clocksource/arc_timer.c | |||
@@ -309,7 +309,7 @@ static int __init arc_clockevent_setup(struct device_node *node) | |||
309 | } | 309 | } |
310 | 310 | ||
311 | ret = cpuhp_setup_state(CPUHP_AP_ARC_TIMER_STARTING, | 311 | ret = cpuhp_setup_state(CPUHP_AP_ARC_TIMER_STARTING, |
312 | "AP_ARC_TIMER_STARTING", | 312 | "clockevents/arc/timer:starting", |
313 | arc_timer_starting_cpu, | 313 | arc_timer_starting_cpu, |
314 | arc_timer_dying_cpu); | 314 | arc_timer_dying_cpu); |
315 | if (ret) { | 315 | if (ret) { |
diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index 02fef6830e72..cdeca850f29e 100644 --- a/drivers/clocksource/arm_arch_timer.c +++ b/drivers/clocksource/arm_arch_timer.c | |||
@@ -738,7 +738,7 @@ static int __init arch_timer_register(void) | |||
738 | 738 | ||
739 | /* Register and immediately configure the timer on the boot CPU */ | 739 | /* Register and immediately configure the timer on the boot CPU */ |
740 | err = cpuhp_setup_state(CPUHP_AP_ARM_ARCH_TIMER_STARTING, | 740 | err = cpuhp_setup_state(CPUHP_AP_ARM_ARCH_TIMER_STARTING, |
741 | "AP_ARM_ARCH_TIMER_STARTING", | 741 | "clockevents/arm/arch_timer:starting", |
742 | arch_timer_starting_cpu, arch_timer_dying_cpu); | 742 | arch_timer_starting_cpu, arch_timer_dying_cpu); |
743 | if (err) | 743 | if (err) |
744 | goto out_unreg_cpupm; | 744 | goto out_unreg_cpupm; |
diff --git a/drivers/clocksource/arm_global_timer.c b/drivers/clocksource/arm_global_timer.c index 8da03298f844..bbfeb2800a94 100644 --- a/drivers/clocksource/arm_global_timer.c +++ b/drivers/clocksource/arm_global_timer.c | |||
@@ -316,7 +316,7 @@ static int __init global_timer_of_register(struct device_node *np) | |||
316 | goto out_irq; | 316 | goto out_irq; |
317 | 317 | ||
318 | err = cpuhp_setup_state(CPUHP_AP_ARM_GLOBAL_TIMER_STARTING, | 318 | err = cpuhp_setup_state(CPUHP_AP_ARM_GLOBAL_TIMER_STARTING, |
319 | "AP_ARM_GLOBAL_TIMER_STARTING", | 319 | "clockevents/arm/global_timer:starting", |
320 | gt_starting_cpu, gt_dying_cpu); | 320 | gt_starting_cpu, gt_dying_cpu); |
321 | if (err) | 321 | if (err) |
322 | goto out_irq; | 322 | goto out_irq; |
diff --git a/drivers/clocksource/dummy_timer.c b/drivers/clocksource/dummy_timer.c index 89f1c2edbe02..01f3f5a59bc6 100644 --- a/drivers/clocksource/dummy_timer.c +++ b/drivers/clocksource/dummy_timer.c | |||
@@ -34,7 +34,7 @@ static int dummy_timer_starting_cpu(unsigned int cpu) | |||
34 | static int __init dummy_timer_register(void) | 34 | static int __init dummy_timer_register(void) |
35 | { | 35 | { |
36 | return cpuhp_setup_state(CPUHP_AP_DUMMY_TIMER_STARTING, | 36 | return cpuhp_setup_state(CPUHP_AP_DUMMY_TIMER_STARTING, |
37 | "AP_DUMMY_TIMER_STARTING", | 37 | "clockevents/dummy_timer:starting", |
38 | dummy_timer_starting_cpu, NULL); | 38 | dummy_timer_starting_cpu, NULL); |
39 | } | 39 | } |
40 | early_initcall(dummy_timer_register); | 40 | early_initcall(dummy_timer_register); |
diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 8f3488b80896..b45b72b95861 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c | |||
@@ -552,7 +552,7 @@ static int __init exynos4_timer_resources(struct device_node *np, void __iomem * | |||
552 | 552 | ||
553 | /* Install hotplug callbacks which configure the timer on this CPU */ | 553 | /* Install hotplug callbacks which configure the timer on this CPU */ |
554 | err = cpuhp_setup_state(CPUHP_AP_EXYNOS4_MCT_TIMER_STARTING, | 554 | err = cpuhp_setup_state(CPUHP_AP_EXYNOS4_MCT_TIMER_STARTING, |
555 | "AP_EXYNOS4_MCT_TIMER_STARTING", | 555 | "clockevents/exynos4/mct_timer:starting", |
556 | exynos4_mct_starting_cpu, | 556 | exynos4_mct_starting_cpu, |
557 | exynos4_mct_dying_cpu); | 557 | exynos4_mct_dying_cpu); |
558 | if (err) | 558 | if (err) |
diff --git a/drivers/clocksource/jcore-pit.c b/drivers/clocksource/jcore-pit.c index 54e1665aa03c..4e4146f69845 100644 --- a/drivers/clocksource/jcore-pit.c +++ b/drivers/clocksource/jcore-pit.c | |||
@@ -240,7 +240,7 @@ static int __init jcore_pit_init(struct device_node *node) | |||
240 | } | 240 | } |
241 | 241 | ||
242 | cpuhp_setup_state(CPUHP_AP_JCORE_TIMER_STARTING, | 242 | cpuhp_setup_state(CPUHP_AP_JCORE_TIMER_STARTING, |
243 | "AP_JCORE_TIMER_STARTING", | 243 | "clockevents/jcore:starting", |
244 | jcore_pit_local_init, NULL); | 244 | jcore_pit_local_init, NULL); |
245 | 245 | ||
246 | return 0; | 246 | return 0; |
diff --git a/drivers/clocksource/metag_generic.c b/drivers/clocksource/metag_generic.c index a80ab3e446b7..172f43d4bc1a 100644 --- a/drivers/clocksource/metag_generic.c +++ b/drivers/clocksource/metag_generic.c | |||
@@ -154,6 +154,6 @@ int __init metag_generic_timer_init(void) | |||
154 | 154 | ||
155 | /* Hook cpu boot to configure the CPU's timers */ | 155 | /* Hook cpu boot to configure the CPU's timers */ |
156 | return cpuhp_setup_state(CPUHP_AP_METAG_TIMER_STARTING, | 156 | return cpuhp_setup_state(CPUHP_AP_METAG_TIMER_STARTING, |
157 | "AP_METAG_TIMER_STARTING", | 157 | "clockevents/metag:starting", |
158 | arch_timer_starting_cpu, NULL); | 158 | arch_timer_starting_cpu, NULL); |
159 | } | 159 | } |
diff --git a/drivers/clocksource/mips-gic-timer.c b/drivers/clocksource/mips-gic-timer.c index 7a960cd01104..d9278847ffb2 100644 --- a/drivers/clocksource/mips-gic-timer.c +++ b/drivers/clocksource/mips-gic-timer.c | |||
@@ -120,8 +120,8 @@ static int gic_clockevent_init(void) | |||
120 | } | 120 | } |
121 | 121 | ||
122 | cpuhp_setup_state(CPUHP_AP_MIPS_GIC_TIMER_STARTING, | 122 | cpuhp_setup_state(CPUHP_AP_MIPS_GIC_TIMER_STARTING, |
123 | "AP_MIPS_GIC_TIMER_STARTING", gic_starting_cpu, | 123 | "clockevents/mips/gic/timer:starting", |
124 | gic_dying_cpu); | 124 | gic_starting_cpu, gic_dying_cpu); |
125 | return 0; | 125 | return 0; |
126 | } | 126 | } |
127 | 127 | ||
diff --git a/drivers/clocksource/qcom-timer.c b/drivers/clocksource/qcom-timer.c index 3283cfa2aa52..3bf65fff5c08 100644 --- a/drivers/clocksource/qcom-timer.c +++ b/drivers/clocksource/qcom-timer.c | |||
@@ -182,7 +182,7 @@ static int __init msm_timer_init(u32 dgt_hz, int sched_bits, int irq, | |||
182 | } else { | 182 | } else { |
183 | /* Install and invoke hotplug callbacks */ | 183 | /* Install and invoke hotplug callbacks */ |
184 | res = cpuhp_setup_state(CPUHP_AP_QCOM_TIMER_STARTING, | 184 | res = cpuhp_setup_state(CPUHP_AP_QCOM_TIMER_STARTING, |
185 | "AP_QCOM_TIMER_STARTING", | 185 | "clockevents/qcom/timer:starting", |
186 | msm_local_timer_starting_cpu, | 186 | msm_local_timer_starting_cpu, |
187 | msm_local_timer_dying_cpu); | 187 | msm_local_timer_dying_cpu); |
188 | if (res) { | 188 | if (res) { |
diff --git a/drivers/clocksource/time-armada-370-xp.c b/drivers/clocksource/time-armada-370-xp.c index 3c39e6f45971..4440aefc59cd 100644 --- a/drivers/clocksource/time-armada-370-xp.c +++ b/drivers/clocksource/time-armada-370-xp.c | |||
@@ -320,7 +320,7 @@ static int __init armada_370_xp_timer_common_init(struct device_node *np) | |||
320 | } | 320 | } |
321 | 321 | ||
322 | res = cpuhp_setup_state(CPUHP_AP_ARMADA_TIMER_STARTING, | 322 | res = cpuhp_setup_state(CPUHP_AP_ARMADA_TIMER_STARTING, |
323 | "AP_ARMADA_TIMER_STARTING", | 323 | "clockevents/armada:starting", |
324 | armada_370_xp_timer_starting_cpu, | 324 | armada_370_xp_timer_starting_cpu, |
325 | armada_370_xp_timer_dying_cpu); | 325 | armada_370_xp_timer_dying_cpu); |
326 | if (res) { | 326 | if (res) { |
diff --git a/drivers/clocksource/timer-atlas7.c b/drivers/clocksource/timer-atlas7.c index 4334e0330ada..3c23e1744f4a 100644 --- a/drivers/clocksource/timer-atlas7.c +++ b/drivers/clocksource/timer-atlas7.c | |||
@@ -221,7 +221,7 @@ static int __init sirfsoc_clockevent_init(void) | |||
221 | 221 | ||
222 | /* Install and invoke hotplug callbacks */ | 222 | /* Install and invoke hotplug callbacks */ |
223 | return cpuhp_setup_state(CPUHP_AP_MARCO_TIMER_STARTING, | 223 | return cpuhp_setup_state(CPUHP_AP_MARCO_TIMER_STARTING, |
224 | "AP_MARCO_TIMER_STARTING", | 224 | "clockevents/marco:starting", |
225 | sirfsoc_local_timer_starting_cpu, | 225 | sirfsoc_local_timer_starting_cpu, |
226 | sirfsoc_local_timer_dying_cpu); | 226 | sirfsoc_local_timer_dying_cpu); |
227 | } | 227 | } |
diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c index 3fe368b23d15..a51b6b64ecdf 100644 --- a/drivers/hwtracing/coresight/coresight-etm3x.c +++ b/drivers/hwtracing/coresight/coresight-etm3x.c | |||
@@ -804,10 +804,10 @@ static int etm_probe(struct amba_device *adev, const struct amba_id *id) | |||
804 | 804 | ||
805 | if (!etm_count++) { | 805 | if (!etm_count++) { |
806 | cpuhp_setup_state_nocalls(CPUHP_AP_ARM_CORESIGHT_STARTING, | 806 | cpuhp_setup_state_nocalls(CPUHP_AP_ARM_CORESIGHT_STARTING, |
807 | "AP_ARM_CORESIGHT_STARTING", | 807 | "arm/coresight:starting", |
808 | etm_starting_cpu, etm_dying_cpu); | 808 | etm_starting_cpu, etm_dying_cpu); |
809 | ret = cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN, | 809 | ret = cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN, |
810 | "AP_ARM_CORESIGHT_ONLINE", | 810 | "arm/coresight:online", |
811 | etm_online_cpu, NULL); | 811 | etm_online_cpu, NULL); |
812 | if (ret < 0) | 812 | if (ret < 0) |
813 | goto err_arch_supported; | 813 | goto err_arch_supported; |
diff --git a/drivers/hwtracing/coresight/coresight-etm4x.c b/drivers/hwtracing/coresight/coresight-etm4x.c index 4db8d6a4d0cb..5edc63fbb06f 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x.c +++ b/drivers/hwtracing/coresight/coresight-etm4x.c | |||
@@ -987,10 +987,10 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id) | |||
987 | 987 | ||
988 | if (!etm4_count++) { | 988 | if (!etm4_count++) { |
989 | cpuhp_setup_state_nocalls(CPUHP_AP_ARM_CORESIGHT4_STARTING, | 989 | cpuhp_setup_state_nocalls(CPUHP_AP_ARM_CORESIGHT4_STARTING, |
990 | "AP_ARM_CORESIGHT4_STARTING", | 990 | "arm/coresight4:starting", |
991 | etm4_starting_cpu, etm4_dying_cpu); | 991 | etm4_starting_cpu, etm4_dying_cpu); |
992 | ret = cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN, | 992 | ret = cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN, |
993 | "AP_ARM_CORESIGHT4_ONLINE", | 993 | "arm/coresight4:online", |
994 | etm4_online_cpu, NULL); | 994 | etm4_online_cpu, NULL); |
995 | if (ret < 0) | 995 | if (ret < 0) |
996 | goto err_arch_supported; | 996 | goto err_arch_supported; |
diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c index 8bcee65a0b8c..9d9c2c45916a 100644 --- a/drivers/irqchip/irq-armada-370-xp.c +++ b/drivers/irqchip/irq-armada-370-xp.c | |||
@@ -578,13 +578,13 @@ static int __init armada_370_xp_mpic_of_init(struct device_node *node, | |||
578 | #ifdef CONFIG_SMP | 578 | #ifdef CONFIG_SMP |
579 | set_smp_cross_call(armada_mpic_send_doorbell); | 579 | set_smp_cross_call(armada_mpic_send_doorbell); |
580 | cpuhp_setup_state_nocalls(CPUHP_AP_IRQ_ARMADA_XP_STARTING, | 580 | cpuhp_setup_state_nocalls(CPUHP_AP_IRQ_ARMADA_XP_STARTING, |
581 | "AP_IRQ_ARMADA_XP_STARTING", | 581 | "irqchip/armada/ipi:starting", |
582 | armada_xp_mpic_starting_cpu, NULL); | 582 | armada_xp_mpic_starting_cpu, NULL); |
583 | #endif | 583 | #endif |
584 | } else { | 584 | } else { |
585 | #ifdef CONFIG_SMP | 585 | #ifdef CONFIG_SMP |
586 | cpuhp_setup_state_nocalls(CPUHP_AP_IRQ_ARMADA_CASC_STARTING, | 586 | cpuhp_setup_state_nocalls(CPUHP_AP_IRQ_ARMADA_CASC_STARTING, |
587 | "AP_IRQ_ARMADA_CASC_STARTING", | 587 | "irqchip/armada/cascade:starting", |
588 | mpic_cascaded_starting_cpu, NULL); | 588 | mpic_cascaded_starting_cpu, NULL); |
589 | #endif | 589 | #endif |
590 | irq_set_chained_handler(parent_irq, | 590 | irq_set_chained_handler(parent_irq, |
diff --git a/drivers/irqchip/irq-bcm2836.c b/drivers/irqchip/irq-bcm2836.c index d96b2c947e74..e7463e3c0814 100644 --- a/drivers/irqchip/irq-bcm2836.c +++ b/drivers/irqchip/irq-bcm2836.c | |||
@@ -245,7 +245,7 @@ bcm2836_arm_irqchip_smp_init(void) | |||
245 | #ifdef CONFIG_SMP | 245 | #ifdef CONFIG_SMP |
246 | /* Unmask IPIs to the boot CPU. */ | 246 | /* Unmask IPIs to the boot CPU. */ |
247 | cpuhp_setup_state(CPUHP_AP_IRQ_BCM2836_STARTING, | 247 | cpuhp_setup_state(CPUHP_AP_IRQ_BCM2836_STARTING, |
248 | "AP_IRQ_BCM2836_STARTING", bcm2836_cpu_starting, | 248 | "irqchip/bcm2836:starting", bcm2836_cpu_starting, |
249 | bcm2836_cpu_dying); | 249 | bcm2836_cpu_dying); |
250 | 250 | ||
251 | set_smp_cross_call(bcm2836_arm_irqchip_send_ipi); | 251 | set_smp_cross_call(bcm2836_arm_irqchip_send_ipi); |
diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index 26e1d7fafb1e..d696de1a29fb 100644 --- a/drivers/irqchip/irq-gic-v3.c +++ b/drivers/irqchip/irq-gic-v3.c | |||
@@ -633,8 +633,8 @@ static void gic_smp_init(void) | |||
633 | { | 633 | { |
634 | set_smp_cross_call(gic_raise_softirq); | 634 | set_smp_cross_call(gic_raise_softirq); |
635 | cpuhp_setup_state_nocalls(CPUHP_AP_IRQ_GICV3_STARTING, | 635 | cpuhp_setup_state_nocalls(CPUHP_AP_IRQ_GICV3_STARTING, |
636 | "AP_IRQ_GICV3_STARTING", gic_starting_cpu, | 636 | "irqchip/arm/gicv3:starting", |
637 | NULL); | 637 | gic_starting_cpu, NULL); |
638 | } | 638 | } |
639 | 639 | ||
640 | static int gic_set_affinity(struct irq_data *d, const struct cpumask *mask_val, | 640 | static int gic_set_affinity(struct irq_data *d, const struct cpumask *mask_val, |
diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index d6c404b3584d..1b1df4f770bd 100644 --- a/drivers/irqchip/irq-gic.c +++ b/drivers/irqchip/irq-gic.c | |||
@@ -1191,7 +1191,7 @@ static int __init __gic_init_bases(struct gic_chip_data *gic, | |||
1191 | set_smp_cross_call(gic_raise_softirq); | 1191 | set_smp_cross_call(gic_raise_softirq); |
1192 | #endif | 1192 | #endif |
1193 | cpuhp_setup_state_nocalls(CPUHP_AP_IRQ_GIC_STARTING, | 1193 | cpuhp_setup_state_nocalls(CPUHP_AP_IRQ_GIC_STARTING, |
1194 | "AP_IRQ_GIC_STARTING", | 1194 | "irqchip/arm/gic:starting", |
1195 | gic_starting_cpu, NULL); | 1195 | gic_starting_cpu, NULL); |
1196 | set_handle_irq(gic_handle_irq); | 1196 | set_handle_irq(gic_handle_irq); |
1197 | if (static_key_true(&supports_deactivate)) | 1197 | if (static_key_true(&supports_deactivate)) |
diff --git a/drivers/irqchip/irq-hip04.c b/drivers/irqchip/irq-hip04.c index 021b0e0833c1..c1b4ee955dbe 100644 --- a/drivers/irqchip/irq-hip04.c +++ b/drivers/irqchip/irq-hip04.c | |||
@@ -407,7 +407,7 @@ hip04_of_init(struct device_node *node, struct device_node *parent) | |||
407 | set_handle_irq(hip04_handle_irq); | 407 | set_handle_irq(hip04_handle_irq); |
408 | 408 | ||
409 | hip04_irq_dist_init(&hip04_data); | 409 | hip04_irq_dist_init(&hip04_data); |
410 | cpuhp_setup_state(CPUHP_AP_IRQ_HIP04_STARTING, "AP_IRQ_HIP04_STARTING", | 410 | cpuhp_setup_state(CPUHP_AP_IRQ_HIP04_STARTING, "irqchip/hip04:starting", |
411 | hip04_irq_starting_cpu, NULL); | 411 | hip04_irq_starting_cpu, NULL); |
412 | return 0; | 412 | return 0; |
413 | } | 413 | } |
diff --git a/drivers/leds/trigger/ledtrig-cpu.c b/drivers/leds/trigger/ledtrig-cpu.c index 9719caf7437c..a41896468cb3 100644 --- a/drivers/leds/trigger/ledtrig-cpu.c +++ b/drivers/leds/trigger/ledtrig-cpu.c | |||
@@ -127,7 +127,7 @@ static int __init ledtrig_cpu_init(void) | |||
127 | 127 | ||
128 | register_syscore_ops(&ledtrig_cpu_syscore_ops); | 128 | register_syscore_ops(&ledtrig_cpu_syscore_ops); |
129 | 129 | ||
130 | ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "AP_LEDTRIG_STARTING", | 130 | ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "leds/trigger:starting", |
131 | ledtrig_online_cpu, ledtrig_prepare_down_cpu); | 131 | ledtrig_online_cpu, ledtrig_prepare_down_cpu); |
132 | if (ret < 0) | 132 | if (ret < 0) |
133 | pr_err("CPU hotplug notifier for ledtrig-cpu could not be registered: %d\n", | 133 | pr_err("CPU hotplug notifier for ledtrig-cpu could not be registered: %d\n", |
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 5deeda61d6d3..4a105006ca63 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c | |||
@@ -2484,13 +2484,13 @@ static __init int virtio_net_driver_init(void) | |||
2484 | { | 2484 | { |
2485 | int ret; | 2485 | int ret; |
2486 | 2486 | ||
2487 | ret = cpuhp_setup_state_multi(CPUHP_AP_ONLINE_DYN, "AP_VIRT_NET_ONLINE", | 2487 | ret = cpuhp_setup_state_multi(CPUHP_AP_ONLINE_DYN, "virtio/net:online", |
2488 | virtnet_cpu_online, | 2488 | virtnet_cpu_online, |
2489 | virtnet_cpu_down_prep); | 2489 | virtnet_cpu_down_prep); |
2490 | if (ret < 0) | 2490 | if (ret < 0) |
2491 | goto out; | 2491 | goto out; |
2492 | virtionet_online = ret; | 2492 | virtionet_online = ret; |
2493 | ret = cpuhp_setup_state_multi(CPUHP_VIRT_NET_DEAD, "VIRT_NET_DEAD", | 2493 | ret = cpuhp_setup_state_multi(CPUHP_VIRT_NET_DEAD, "virtio/net:dead", |
2494 | NULL, virtnet_cpu_dead); | 2494 | NULL, virtnet_cpu_dead); |
2495 | if (ret) | 2495 | if (ret) |
2496 | goto err_dead; | 2496 | goto err_dead; |
diff --git a/drivers/perf/arm_pmu.c b/drivers/perf/arm_pmu.c index b37b57294566..6d9335865880 100644 --- a/drivers/perf/arm_pmu.c +++ b/drivers/perf/arm_pmu.c | |||
@@ -1084,7 +1084,7 @@ static int arm_pmu_hp_init(void) | |||
1084 | int ret; | 1084 | int ret; |
1085 | 1085 | ||
1086 | ret = cpuhp_setup_state_multi(CPUHP_AP_PERF_ARM_STARTING, | 1086 | ret = cpuhp_setup_state_multi(CPUHP_AP_PERF_ARM_STARTING, |
1087 | "AP_PERF_ARM_STARTING", | 1087 | "perf/arm/pmu:starting", |
1088 | arm_perf_starting_cpu, NULL); | 1088 | arm_perf_starting_cpu, NULL); |
1089 | if (ret) | 1089 | if (ret) |
1090 | pr_err("CPU hotplug notifier for ARM PMU could not be registered: %d\n", | 1090 | pr_err("CPU hotplug notifier for ARM PMU could not be registered: %d\n", |
diff --git a/drivers/xen/events/events_fifo.c b/drivers/xen/events/events_fifo.c index 7ef27c6ed72f..c03f9c86c7e3 100644 --- a/drivers/xen/events/events_fifo.c +++ b/drivers/xen/events/events_fifo.c | |||
@@ -445,7 +445,7 @@ int __init xen_evtchn_fifo_init(void) | |||
445 | evtchn_ops = &evtchn_ops_fifo; | 445 | evtchn_ops = &evtchn_ops_fifo; |
446 | 446 | ||
447 | cpuhp_setup_state_nocalls(CPUHP_XEN_EVTCHN_PREPARE, | 447 | cpuhp_setup_state_nocalls(CPUHP_XEN_EVTCHN_PREPARE, |
448 | "CPUHP_XEN_EVTCHN_PREPARE", | 448 | "xen/evtchn:prepare", |
449 | xen_evtchn_cpu_prepare, xen_evtchn_cpu_dead); | 449 | xen_evtchn_cpu_prepare, xen_evtchn_cpu_dead); |
450 | out: | 450 | out: |
451 | put_cpu(); | 451 | put_cpu(); |
diff --git a/virt/kvm/arm/arch_timer.c b/virt/kvm/arm/arch_timer.c index ae95fc0e3214..5b4f60d43314 100644 --- a/virt/kvm/arm/arch_timer.c +++ b/virt/kvm/arm/arch_timer.c | |||
@@ -456,7 +456,7 @@ int kvm_timer_hyp_init(void) | |||
456 | kvm_info("virtual timer IRQ%d\n", host_vtimer_irq); | 456 | kvm_info("virtual timer IRQ%d\n", host_vtimer_irq); |
457 | 457 | ||
458 | cpuhp_setup_state(CPUHP_AP_KVM_ARM_TIMER_STARTING, | 458 | cpuhp_setup_state(CPUHP_AP_KVM_ARM_TIMER_STARTING, |
459 | "AP_KVM_ARM_TIMER_STARTING", kvm_timer_starting_cpu, | 459 | "kvm/arm/timer:starting", kvm_timer_starting_cpu, |
460 | kvm_timer_dying_cpu); | 460 | kvm_timer_dying_cpu); |
461 | return err; | 461 | return err; |
462 | } | 462 | } |
diff --git a/virt/kvm/arm/vgic/vgic-init.c b/virt/kvm/arm/vgic/vgic-init.c index 8cebfbc19e90..5114391b7e5a 100644 --- a/virt/kvm/arm/vgic/vgic-init.c +++ b/virt/kvm/arm/vgic/vgic-init.c | |||
@@ -428,7 +428,7 @@ int kvm_vgic_hyp_init(void) | |||
428 | } | 428 | } |
429 | 429 | ||
430 | ret = cpuhp_setup_state(CPUHP_AP_KVM_ARM_VGIC_INIT_STARTING, | 430 | ret = cpuhp_setup_state(CPUHP_AP_KVM_ARM_VGIC_INIT_STARTING, |
431 | "AP_KVM_ARM_VGIC_INIT_STARTING", | 431 | "kvm/arm/vgic:starting", |
432 | vgic_init_cpu_starting, vgic_init_cpu_dying); | 432 | vgic_init_cpu_starting, vgic_init_cpu_dying); |
433 | if (ret) { | 433 | if (ret) { |
434 | kvm_err("Cannot register vgic CPU notifier\n"); | 434 | kvm_err("Cannot register vgic CPU notifier\n"); |
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index de102cae7125..ec298b7ca556 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -3944,7 +3944,7 @@ int kvm_init(void *opaque, unsigned vcpu_size, unsigned vcpu_align, | |||
3944 | goto out_free_1; | 3944 | goto out_free_1; |
3945 | } | 3945 | } |
3946 | 3946 | ||
3947 | r = cpuhp_setup_state_nocalls(CPUHP_AP_KVM_STARTING, "AP_KVM_STARTING", | 3947 | r = cpuhp_setup_state_nocalls(CPUHP_AP_KVM_STARTING, "kvm/cpu:starting", |
3948 | kvm_starting_cpu, kvm_dying_cpu); | 3948 | kvm_starting_cpu, kvm_dying_cpu); |
3949 | if (r) | 3949 | if (r) |
3950 | goto out_free_2; | 3950 | goto out_free_2; |