cpu/hotplug: Cleanup state names
authorThomas Gleixner <tglx@linutronix.de>
Wed, 21 Dec 2016 19:19:54 +0000 (20:19 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 25 Dec 2016 09:47:44 +0000 (10:47 +0100)
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:
arch/arm/kernel/smp_twd.c
arch/arm/mach-mvebu/coherency.c
arch/arm/mm/cache-l2x0-pmu.c
arch/arm/mm/cache-l2x0.c
arch/arm/vfp/vfpmodule.c
arch/arm/xen/enlighten.c
arch/arm64/kernel/armv8_deprecated.c
arch/arm64/kernel/debug-monitors.c
arch/arm64/kernel/hw_breakpoint.c
arch/blackfin/kernel/perf_event.c
arch/metag/kernel/perf/perf_event.c
arch/mips/kernel/pm-cps.c
arch/mips/oprofile/op_model_loongson3.c
arch/powerpc/mm/numa.c
arch/powerpc/perf/core-book3s.c
arch/s390/kernel/perf_cpum_cf.c
arch/s390/kernel/perf_cpum_sf.c
arch/x86/entry/vdso/vma.c
arch/x86/events/amd/ibs.c
arch/x86/events/amd/power.c
arch/x86/events/amd/uncore.c
arch/x86/events/core.c
arch/x86/events/intel/cqm.c
arch/x86/events/intel/rapl.c
arch/x86/events/intel/uncore.c
arch/x86/kernel/apb_timer.c
arch/x86/kernel/apic/x2apic_cluster.c
arch/x86/kernel/hpet.c
arch/x86/kernel/tboot.c
arch/x86/kvm/x86.c
arch/x86/xen/enlighten.c
arch/xtensa/kernel/perf_event.c
drivers/bus/arm-cci.c
drivers/bus/arm-ccn.c
drivers/clocksource/arc_timer.c
drivers/clocksource/arm_arch_timer.c
drivers/clocksource/arm_global_timer.c
drivers/clocksource/dummy_timer.c
drivers/clocksource/exynos_mct.c
drivers/clocksource/jcore-pit.c
drivers/clocksource/metag_generic.c
drivers/clocksource/mips-gic-timer.c
drivers/clocksource/qcom-timer.c
drivers/clocksource/time-armada-370-xp.c
drivers/clocksource/timer-atlas7.c
drivers/hwtracing/coresight/coresight-etm3x.c
drivers/hwtracing/coresight/coresight-etm4x.c
drivers/irqchip/irq-armada-370-xp.c
drivers/irqchip/irq-bcm2836.c
drivers/irqchip/irq-gic-v3.c
drivers/irqchip/irq-gic.c
drivers/irqchip/irq-hip04.c
drivers/leds/trigger/ledtrig-cpu.c
drivers/net/virtio_net.c
drivers/perf/arm_pmu.c
drivers/xen/events/events_fifo.c
virt/kvm/arm/arch_timer.c
virt/kvm/arm/vgic/vgic-init.c
virt/kvm/kvm_main.c

index 02d5e5e8d44cd0e55e216b4ab4469f5b386741f8..895ae5197159e36c34a61cbb6c404eced5698264 100644 (file)
@@ -339,7 +339,7 @@ static int __init twd_local_timer_common_register(struct device_node *np)
        }
 
        cpuhp_setup_state_nocalls(CPUHP_AP_ARM_TWD_STARTING,
-                                 "AP_ARM_TWD_STARTING",
+                                 "arm/timer/twd:starting",
                                  twd_timer_starting_cpu, twd_timer_dying_cpu);
 
        twd_get_clock(np);
index ae2a018b93050fa8171d2164124d85796e801bb6..8f8748a0c84f44229fec0eb4f3fa225202c2666a 100644 (file)
@@ -148,7 +148,7 @@ static void __init armada_370_coherency_init(struct device_node *np)
        of_node_put(cpu_config_np);
 
        cpuhp_setup_state_nocalls(CPUHP_AP_ARM_MVEBU_COHERENCY,
-                                 "AP_ARM_MVEBU_COHERENCY",
+                                 "arm/mvebu/coherency:starting",
                                  armada_xp_clear_l2_starting, NULL);
 exit:
        set_cpu_coherent();
index 976d3057272e0e128bdb2af30d8c2f220d4a5aa7..0a1e2280141f796e1fa62ed25352aa77606b2b95 100644 (file)
@@ -563,7 +563,7 @@ static __init int l2x0_pmu_init(void)
 
        cpumask_set_cpu(0, &pmu_cpu);
        ret = cpuhp_setup_state_nocalls(CPUHP_AP_PERF_ARM_L2X0_ONLINE,
-                                       "AP_PERF_ARM_L2X0_ONLINE", NULL,
+                                       "perf/arm/l2x0:online", NULL,
                                        l2x0_pmu_offline_cpu);
        if (ret)
                goto out_pmu;
index d1870c777c6e2decbac8a2cd58c73c10c9e30ede..2290be390f87b15c48cd9cfc67a08386e1148999 100644 (file)
@@ -683,7 +683,7 @@ static void __init l2c310_enable(void __iomem *base, unsigned num_lock)
 
        if (aux & L310_AUX_CTRL_FULL_LINE_ZERO)
                cpuhp_setup_state(CPUHP_AP_ARM_L2X0_STARTING,
-                                 "AP_ARM_L2X0_STARTING", l2c310_starting_cpu,
+                                 "arm/l2x0:starting", l2c310_starting_cpu,
                                  l2c310_dying_cpu);
 }
 
index 0351f5645fb11c7f086e4ad6ea6ab4e9bdd3cfae..569d5a650a4a2c6266ddf8fc6d38e0cd96b985f6 100644 (file)
@@ -799,7 +799,7 @@ static int __init vfp_init(void)
        }
 
        cpuhp_setup_state_nocalls(CPUHP_AP_ARM_VFP_STARTING,
-                                 "AP_ARM_VFP_STARTING", vfp_starting_cpu,
+                                 "arm/vfp:starting", vfp_starting_cpu,
                                  vfp_dying_cpu);
 
        vfp_vector = vfp_support_entry;
index 4986dc0c1dff05f564756d584cde2c06c4ee01ce..11d9f2898b16441b4ccac1dc111fe6c6c5a9ed7d 100644 (file)
@@ -412,7 +412,7 @@ static int __init xen_guest_init(void)
                pvclock_gtod_register_notifier(&xen_pvclock_gtod_notifier);
 
        return cpuhp_setup_state(CPUHP_AP_ARM_XEN_STARTING,
-                                "AP_ARM_XEN_STARTING", xen_starting_cpu,
+                                "arm/xen:starting", xen_starting_cpu,
                                 xen_dying_cpu);
 }
 early_initcall(xen_guest_init);
index 04de188a36c90b01ceb2bc87eb536798b994f794..a211addeb6bc064a88bc42b5c32e3a91488d1edf 100644 (file)
@@ -640,7 +640,7 @@ static int __init armv8_deprecated_init(void)
        }
 
        cpuhp_setup_state_nocalls(CPUHP_AP_ARM64_ISNDEP_STARTING,
-                                 "AP_ARM64_ISNDEP_STARTING",
+                                 "arm64/isndep:starting",
                                  run_all_insn_set_hw_mode, NULL);
        register_insn_emulation_sysctl(ctl_abi);
 
index 605df76f0a06c161b4adf64bb15e90d88328f82e..2bd426448fc190ce52a08208e9ff07fe7fa40a23 100644 (file)
@@ -140,7 +140,7 @@ static int clear_os_lock(unsigned int cpu)
 static int debug_monitors_init(void)
 {
        return cpuhp_setup_state(CPUHP_AP_ARM64_DEBUG_MONITORS_STARTING,
-                                "CPUHP_AP_ARM64_DEBUG_MONITORS_STARTING",
+                                "arm64/debug_monitors:starting",
                                 clear_os_lock, NULL);
 }
 postcore_initcall(debug_monitors_init);
index 1b3c747fedda51060d30fbd8a337870ca0291d6c..0296e79242402008837da11d97cfe682d711c18e 100644 (file)
@@ -1001,7 +1001,7 @@ static int __init arch_hw_breakpoint_init(void)
         * debugger will leave the world in a nice state for us.
         */
        ret = cpuhp_setup_state(CPUHP_AP_PERF_ARM_HW_BREAKPOINT_STARTING,
-                         "CPUHP_AP_PERF_ARM_HW_BREAKPOINT_STARTING",
+                         "perf/arm64/hw_breakpoint:starting",
                          hw_breakpoint_reset, NULL);
        if (ret)
                pr_err("failed to register CPU hotplug notifier: %d\n", ret);
index 6355e97d22b9b29fc7a875183c44812a90cd9ca5..6a9524ad04a5dcec696025a36aa17bea47950811 100644 (file)
@@ -475,7 +475,7 @@ static int __init bfin_pmu_init(void)
 
        ret = perf_pmu_register(&pmu, "cpu", PERF_TYPE_RAW);
        if (!ret)
-               cpuhp_setup_state(CPUHP_PERF_BFIN, "PERF_BFIN",
+               cpuhp_setup_state(CPUHP_PERF_BFIN,"perf/bfin:starting",
                                  bfin_pmu_prepare_cpu, NULL);
        return ret;
 }
index 052cba23708c57bff289c74b386440268d7c2ba1..7e793eb0c1fe1b7053d709e04612a51f9b8456af 100644 (file)
@@ -868,7 +868,7 @@ static int __init init_hw_perf_events(void)
        metag_out32(0, PERF_COUNT(1));
 
        cpuhp_setup_state(CPUHP_AP_PERF_METAG_STARTING,
-                         "AP_PERF_METAG_STARTING", metag_pmu_starting_cpu,
+                         "perf/metag:starting", metag_pmu_starting_cpu,
                          NULL);
 
        ret = perf_pmu_register(&pmu, metag_pmu->name, PERF_TYPE_RAW);
index 7cf653e214237f75b22200c94f0e47c696be14ae..5f928c34c1489c1b054b105a37296f72d863d6f7 100644 (file)
@@ -713,7 +713,7 @@ static int __init cps_pm_init(void)
                pr_warn("pm-cps: no CPC, clock & power gating unavailable\n");
        }
 
-       return cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "AP_PM_CPS_CPU_ONLINE",
+       return cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "mips/cps_pm:online",
                                 cps_pm_online_cpu, NULL);
 }
 arch_initcall(cps_pm_init);
index 85f3ee4ab4566145039480d78113b3847c51da85..d60d97b6113d11b1a2649a5a95f68c404201a594 100644 (file)
@@ -186,7 +186,7 @@ static int __init loongson3_init(void)
 {
        on_each_cpu(reset_counters, NULL, 1);
        cpuhp_setup_state_nocalls(CPUHP_AP_MIPS_OP_LOONGSON3_STARTING,
-                                 "AP_MIPS_OP_LOONGSON3_STARTING",
+                                 "mips/oprofile/loongson3:starting",
                                  loongson3_starting_cpu, loongson3_dying_cpu);
        save_perf_irq = perf_irq;
        perf_irq = loongson3_perfcount_handler;
index 0cb6bd8bfccfd7139b5148a60bd486a1fe8bfcdd..b1099cb2f393c8adbfa7f1ac42f3db478e177efc 100644 (file)
@@ -944,7 +944,7 @@ void __init initmem_init(void)
         * _nocalls() + manual invocation is used because cpuhp is not yet
         * initialized for the boot CPU.
         */
-       cpuhp_setup_state_nocalls(CPUHP_POWER_NUMA_PREPARE, "POWER_NUMA_PREPARE",
+       cpuhp_setup_state_nocalls(CPUHP_POWER_NUMA_PREPARE, "powerpc/numa:prepare",
                                  ppc_numa_cpu_prepare, ppc_numa_cpu_dead);
        for_each_present_cpu(cpu)
                numa_setup_cpu(cpu);
index 72c27b8d2cf3240f201eabeb723afcdb0ff9b0de..fd3e4034c04d2207a30cc82d6c65dffc6094c603 100644 (file)
@@ -2189,7 +2189,7 @@ int register_power_pmu(struct power_pmu *pmu)
 #endif /* CONFIG_PPC64 */
 
        perf_pmu_register(&power_pmu, "cpu", PERF_TYPE_RAW);
-       cpuhp_setup_state(CPUHP_PERF_POWER, "PERF_POWER",
+       cpuhp_setup_state(CPUHP_PERF_POWER, "perf/powerpc:prepare",
                          power_pmu_prepare_cpu, NULL);
        return 0;
 }
index 037c2a253ae48fc977cdb520e21c86c745507624..1aba10e9090632ad7e644f2f066c4c405f1ce530 100644 (file)
@@ -711,7 +711,7 @@ static int __init cpumf_pmu_init(void)
                return rc;
        }
        return cpuhp_setup_state(CPUHP_AP_PERF_S390_CF_ONLINE,
-                                "AP_PERF_S390_CF_ONLINE",
+                                "perf/s390/cf:online",
                                 s390_pmu_online_cpu, s390_pmu_offline_cpu);
 }
 early_initcall(cpumf_pmu_init);
index 763dec18edcdd9ea763dfa18beeeddbc6ca37c9d..1c0b58545c04d6f5c44e0f07838fcc35901e0cf5 100644 (file)
@@ -1623,7 +1623,7 @@ static int __init init_cpum_sampling_pmu(void)
                goto out;
        }
 
-       cpuhp_setup_state(CPUHP_AP_PERF_S390_SF_ONLINE, "AP_PERF_S390_SF_ONLINE",
+       cpuhp_setup_state(CPUHP_AP_PERF_S390_SF_ONLINE, "perf/s390/sf:online",
                          s390_pmu_sf_online_cpu, s390_pmu_sf_offline_cpu);
 out:
        return err;
index 40121d14d34d140b5dcd8b14ed0143d9f6b70a02..10820f6cefbf020737d1729fb92a7217fe0827fe 100644 (file)
@@ -371,7 +371,7 @@ static int __init init_vdso(void)
 
        /* notifier priority > KVM */
        return cpuhp_setup_state(CPUHP_AP_X86_VDSO_VMA_ONLINE,
-                                "AP_X86_VDSO_VMA_ONLINE", vgetcpu_online, NULL);
+                                "x86/vdso/vma:online", vgetcpu_online, NULL);
 }
 subsys_initcall(init_vdso);
 #endif /* CONFIG_X86_64 */
index b26ee32f73e8af227901b2b7f6d0a5ad620f65a3..05612a2529c8bba1e9aa9131a4cabaebe96d5736 100644 (file)
@@ -1010,7 +1010,7 @@ static __init int amd_ibs_init(void)
         * all online cpus.
         */
        cpuhp_setup_state(CPUHP_AP_PERF_X86_AMD_IBS_STARTING,
-                         "AP_PERF_X86_AMD_IBS_STARTING",
+                         "perf/x86/amd/ibs:STARTING",
                          x86_pmu_amd_ibs_starting_cpu,
                          x86_pmu_amd_ibs_dying_cpu);
 
index 9842270ed2f20b27f587ef36fefb86a6ff17a951..a6eee5ac4f581d927e9862cfbde643971fc76cf8 100644 (file)
@@ -291,7 +291,7 @@ static int __init amd_power_pmu_init(void)
 
 
        cpuhp_setup_state(CPUHP_AP_PERF_X86_AMD_POWER_ONLINE,
-                         "AP_PERF_X86_AMD_POWER_ONLINE",
+                         "perf/x86/amd/power:online",
                          power_cpu_init, power_cpu_exit);
 
        ret = perf_pmu_register(&pmu_class, "power", -1);
index 65577f081d072c5f774f763adc19a0e7a87e5627..a0b1bdb3ad421ed93746718717d47eb84904e86f 100644 (file)
@@ -527,16 +527,16 @@ static int __init amd_uncore_init(void)
         * Install callbacks. Core will call them for each online cpu.
         */
        if (cpuhp_setup_state(CPUHP_PERF_X86_AMD_UNCORE_PREP,
-                             "PERF_X86_AMD_UNCORE_PREP",
+                             "perf/x86/amd/uncore:prepare",
                              amd_uncore_cpu_up_prepare, amd_uncore_cpu_dead))
                goto fail_l2;
 
        if (cpuhp_setup_state(CPUHP_AP_PERF_X86_AMD_UNCORE_STARTING,
-                             "AP_PERF_X86_AMD_UNCORE_STARTING",
+                             "perf/x86/amd/uncore:starting",
                              amd_uncore_cpu_starting, NULL))
                goto fail_prep;
        if (cpuhp_setup_state(CPUHP_AP_PERF_X86_AMD_UNCORE_ONLINE,
-                             "AP_PERF_X86_AMD_UNCORE_ONLINE",
+                             "perf/x86/amd/uncore:online",
                              amd_uncore_cpu_online,
                              amd_uncore_cpu_down_prepare))
                goto fail_start;
index f1c22584a46f50342d56a642ca83db1504983b0e..019c5887b698af2a5fbf322c7cc5d6d3f8ab7e57 100644 (file)
@@ -1820,18 +1820,18 @@ static int __init init_hw_perf_events(void)
         * Install callbacks. Core will call them for each online
         * cpu.
         */
-       err = cpuhp_setup_state(CPUHP_PERF_X86_PREPARE, "PERF_X86_PREPARE",
+       err = cpuhp_setup_state(CPUHP_PERF_X86_PREPARE, "perf/x86:prepare",
                                x86_pmu_prepare_cpu, x86_pmu_dead_cpu);
        if (err)
                return err;
 
        err = cpuhp_setup_state(CPUHP_AP_PERF_X86_STARTING,
-                               "AP_PERF_X86_STARTING", x86_pmu_starting_cpu,
+                               "perf/x86:starting", x86_pmu_starting_cpu,
                                x86_pmu_dying_cpu);
        if (err)
                goto out;
 
-       err = cpuhp_setup_state(CPUHP_AP_PERF_X86_ONLINE, "AP_PERF_X86_ONLINE",
+       err = cpuhp_setup_state(CPUHP_AP_PERF_X86_ONLINE, "perf/x86:online",
                                x86_pmu_online_cpu, NULL);
        if (err)
                goto out1;
index 0c45cc8e64ba77f6988cff5a0e5443dfe0449435..8c00dc09a5d2cf41e0e0af5f6eb76577f4f0df09 100644 (file)
@@ -1747,9 +1747,9 @@ static int __init intel_cqm_init(void)
         * is enabled to avoid notifier leak.
         */
        cpuhp_setup_state(CPUHP_AP_PERF_X86_CQM_STARTING,
-                         "AP_PERF_X86_CQM_STARTING",
+                         "perf/x86/cqm:starting",
                          intel_cqm_cpu_starting, NULL);
-       cpuhp_setup_state(CPUHP_AP_PERF_X86_CQM_ONLINE, "AP_PERF_X86_CQM_ONLINE",
+       cpuhp_setup_state(CPUHP_AP_PERF_X86_CQM_ONLINE, "perf/x86/cqm:online",
                          NULL, intel_cqm_cpu_exit);
 
 out:
index 0a535cea8ff31adf6e06fc32ff763d423a73ab74..bd34124449b08a4be95f114b3295c22e4d57cd34 100644 (file)
@@ -803,13 +803,13 @@ static int __init rapl_pmu_init(void)
         * Install callbacks. Core will call them for each online cpu.
         */
 
-       ret = cpuhp_setup_state(CPUHP_PERF_X86_RAPL_PREP, "PERF_X86_RAPL_PREP",
+       ret = cpuhp_setup_state(CPUHP_PERF_X86_RAPL_PREP, "perf/x86/rapl:prepare",
                                rapl_cpu_prepare, NULL);
        if (ret)
                goto out;
 
        ret = cpuhp_setup_state(CPUHP_AP_PERF_X86_RAPL_ONLINE,
-                               "AP_PERF_X86_RAPL_ONLINE",
+                               "perf/x86/rapl:online",
                                rapl_cpu_online, rapl_cpu_offline);
        if (ret)
                goto out1;
index dbaaf7dc8373cb0248a4637abe4a211f266fb2db..97c246f84dea1e79d0f4517376763dcb88a18aea 100644 (file)
@@ -1398,22 +1398,22 @@ static int __init intel_uncore_init(void)
         */
        if (!cret) {
               ret = cpuhp_setup_state(CPUHP_PERF_X86_UNCORE_PREP,
-                                       "PERF_X86_UNCORE_PREP",
-                                       uncore_cpu_prepare, NULL);
+                                      "perf/x86/intel/uncore:prepare",
+                                      uncore_cpu_prepare, NULL);
                if (ret)
                        goto err;
        } else {
                cpuhp_setup_state_nocalls(CPUHP_PERF_X86_UNCORE_PREP,
-                                         "PERF_X86_UNCORE_PREP",
+                                         "perf/x86/intel/uncore:prepare",
                                          uncore_cpu_prepare, NULL);
        }
        first_init = 1;
        cpuhp_setup_state(CPUHP_AP_PERF_X86_UNCORE_STARTING,
-                         "AP_PERF_X86_UNCORE_STARTING",
+                         "perf/x86/uncore:starting",
                          uncore_cpu_starting, uncore_cpu_dying);
        first_init = 0;
        cpuhp_setup_state(CPUHP_AP_PERF_X86_UNCORE_ONLINE,
-                         "AP_PERF_X86_UNCORE_ONLINE",
+                         "perf/x86/uncore:online",
                          uncore_event_cpu_online, uncore_event_cpu_offline);
        return 0;
 
index 456316f6c868dc1aff24585bdc9b0119e4804693..202a7817beaf4a921c1d1115fdc881652ef42d78 100644 (file)
@@ -234,7 +234,7 @@ static __init int apbt_late_init(void)
        if (intel_mid_timer_options == INTEL_MID_TIMER_LAPIC_APBT ||
                !apb_timer_block_enabled)
                return 0;
-       return cpuhp_setup_state(CPUHP_X86_APB_DEAD, "X86_APB_DEAD", NULL,
+       return cpuhp_setup_state(CPUHP_X86_APB_DEAD, "x86/apb:dead", NULL,
                                 apbt_cpu_dead);
 }
 fs_initcall(apbt_late_init);
index 200af5ae96626e1610c7c946bb0a33c5360f9bcb..5a35f208ed95909d339db672cb493445c24a1a81 100644 (file)
@@ -191,7 +191,7 @@ static int x2apic_cluster_probe(void)
        if (!x2apic_mode)
                return 0;
 
-       ret = cpuhp_setup_state(CPUHP_X2APIC_PREPARE, "X2APIC_PREPARE",
+       ret = cpuhp_setup_state(CPUHP_X2APIC_PREPARE, "x86/x2apic:prepare",
                                x2apic_prepare_cpu, x2apic_dead_cpu);
        if (ret < 0) {
                pr_err("Failed to register X2APIC_PREPARE\n");
index 274fab99169d8235628b13fa955fc98b520ee27f..38c8fd684d38b87bb1310a59215da8c9df57a251 100644 (file)
@@ -1051,11 +1051,11 @@ static __init int hpet_late_init(void)
                return 0;
 
        /* This notifier should be called after workqueue is ready */
-       ret = cpuhp_setup_state(CPUHP_AP_X86_HPET_ONLINE, "AP_X86_HPET_ONLINE",
+       ret = cpuhp_setup_state(CPUHP_AP_X86_HPET_ONLINE, "x86/hpet:online",
                                hpet_cpuhp_online, NULL);
        if (ret)
                return ret;
-       ret = cpuhp_setup_state(CPUHP_X86_HPET_DEAD, "X86_HPET_DEAD", NULL,
+       ret = cpuhp_setup_state(CPUHP_X86_HPET_DEAD, "x86/hpet:dead", NULL,
                                hpet_cpuhp_dead);
        if (ret)
                goto err_cpuhp;
index 8402907825b02706f87283c45b5e27086a9cce0b..b868fa1b812b3a82713e0556c39900bced73f338 100644 (file)
@@ -408,7 +408,7 @@ static __init int tboot_late_init(void)
        tboot_create_trampoline();
 
        atomic_set(&ap_wfs_count, 0);
-       cpuhp_setup_state(CPUHP_AP_X86_TBOOT_DYING, "AP_X86_TBOOT_DYING", NULL,
+       cpuhp_setup_state(CPUHP_AP_X86_TBOOT_DYING, "x86/tboot:dying", NULL,
                          tboot_dying_cpu);
 #ifdef CONFIG_DEBUG_FS
        debugfs_create_file("tboot_log", S_IRUSR,
index 445c51b6cf6dc702a0da9710ee5b6eb4b996ec34..6414fa6cb9fd561853fff141b333498c951c968b 100644 (file)
@@ -5855,7 +5855,7 @@ static void kvm_timer_init(void)
        }
        pr_debug("kvm: max_tsc_khz = %ld\n", max_tsc_khz);
 
-       cpuhp_setup_state(CPUHP_AP_X86_KVM_CLK_ONLINE, "AP_X86_KVM_CLK_ONLINE",
+       cpuhp_setup_state(CPUHP_AP_X86_KVM_CLK_ONLINE, "x86/kvm/clk:online",
                          kvmclock_cpu_online, kvmclock_cpu_down_prep);
 }
 
index ced7027b3fbc299a32daa666fa77c6afa2739599..51ef952327257cb2a787b6743805e4cb677ecafc 100644 (file)
@@ -1529,11 +1529,11 @@ static int xen_cpuhp_setup(void)
        int rc;
 
        rc = cpuhp_setup_state_nocalls(CPUHP_XEN_PREPARE,
-                                      "XEN_HVM_GUEST_PREPARE",
+                                      "x86/xen/hvm_guest:prepare",
                                       xen_cpu_up_prepare, xen_cpu_dead);
        if (rc >= 0) {
                rc = cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN,
-                                              "XEN_HVM_GUEST_ONLINE",
+                                              "x86/xen/hvm_guest:online",
                                               xen_cpu_up_online, NULL);
                if (rc < 0)
                        cpuhp_remove_state_nocalls(CPUHP_XEN_PREPARE);
index 0fecc8a2c0b58987f9a2af56bc40808cbef4dfa3..ff1d81385ed7a2658e3733ea864f0f4434ec0e65 100644 (file)
@@ -422,7 +422,7 @@ static int __init xtensa_pmu_init(void)
        int irq = irq_create_mapping(NULL, XCHAL_PROFILING_INTERRUPT);
 
        ret = cpuhp_setup_state(CPUHP_AP_PERF_XTENSA_STARTING,
-                               "AP_PERF_XTENSA_STARTING", xtensa_pmu_setup,
+                               "perf/xtensa:starting", xtensa_pmu_setup,
                                NULL);
        if (ret) {
                pr_err("xtensa_pmu: failed to register CPU-hotplug.\n");
index 231633328dfa9641ad2f6644321aab6690dc7939..c49da15d979013bb5b890e5cdd4db9296e1508fa 100644 (file)
@@ -1796,7 +1796,7 @@ static int __init cci_platform_init(void)
        int ret;
 
        ret = cpuhp_setup_state_multi(CPUHP_AP_PERF_ARM_CCI_ONLINE,
-                                     "AP_PERF_ARM_CCI_ONLINE", NULL,
+                                     "perf/arm/cci:online", NULL,
                                      cci_pmu_offline_cpu);
        if (ret)
                return ret;
index aee83462b796bde9b8f6b2e7d500e9d5d5320288..4d6a2b7e4d3fc1fead60ccfc60d7f048030d3de1 100644 (file)
@@ -1562,7 +1562,7 @@ static int __init arm_ccn_init(void)
        int i, ret;
 
        ret = cpuhp_setup_state_multi(CPUHP_AP_PERF_ARM_CCN_ONLINE,
-                                     "AP_PERF_ARM_CCN_ONLINE", NULL,
+                                     "perf/arm/ccn:online", NULL,
                                      arm_ccn_pmu_offline_cpu);
        if (ret)
                return ret;
index a49748d826c0315cf537a0beea7fb40073e410a8..2b7e87134d1a5631286aa921325e28bd57828d8f 100644 (file)
@@ -309,7 +309,7 @@ static int __init arc_clockevent_setup(struct device_node *node)
        }
 
        ret = cpuhp_setup_state(CPUHP_AP_ARC_TIMER_STARTING,
-                               "AP_ARC_TIMER_STARTING",
+                               "clockevents/arc/timer:starting",
                                arc_timer_starting_cpu,
                                arc_timer_dying_cpu);
        if (ret) {
index 02fef6830e728d0adfad52920034c722273dfe61..cdeca850f29e20d4c6f48be24d421557f20bc686 100644 (file)
@@ -738,7 +738,7 @@ static int __init arch_timer_register(void)
 
        /* Register and immediately configure the timer on the boot CPU */
        err = cpuhp_setup_state(CPUHP_AP_ARM_ARCH_TIMER_STARTING,
-                               "AP_ARM_ARCH_TIMER_STARTING",
+                               "clockevents/arm/arch_timer:starting",
                                arch_timer_starting_cpu, arch_timer_dying_cpu);
        if (err)
                goto out_unreg_cpupm;
index 8da03298f844f386b81c08f3bc12228fcab340ab..bbfeb2800a94a582b52d5ffe57381cbc5dba72fa 100644 (file)
@@ -316,7 +316,7 @@ static int __init global_timer_of_register(struct device_node *np)
                goto out_irq;
        
        err = cpuhp_setup_state(CPUHP_AP_ARM_GLOBAL_TIMER_STARTING,
-                               "AP_ARM_GLOBAL_TIMER_STARTING",
+                               "clockevents/arm/global_timer:starting",
                                gt_starting_cpu, gt_dying_cpu);
        if (err)
                goto out_irq;
index 89f1c2edbe02ee96eaf822e4bafe8139fa556062..01f3f5a59bc60306afee266ff536c85c50c45b1a 100644 (file)
@@ -34,7 +34,7 @@ static int dummy_timer_starting_cpu(unsigned int cpu)
 static int __init dummy_timer_register(void)
 {
        return cpuhp_setup_state(CPUHP_AP_DUMMY_TIMER_STARTING,
-                                "AP_DUMMY_TIMER_STARTING",
+                                "clockevents/dummy_timer:starting",
                                 dummy_timer_starting_cpu, NULL);
 }
 early_initcall(dummy_timer_register);
index 8f3488b808964b1884eaf18d602fe2ae9b4921c2..b45b72b9586107e3c99d7ead9b964a47d35d1b23 100644 (file)
@@ -552,7 +552,7 @@ static int __init exynos4_timer_resources(struct device_node *np, void __iomem *
 
        /* Install hotplug callbacks which configure the timer on this CPU */
        err = cpuhp_setup_state(CPUHP_AP_EXYNOS4_MCT_TIMER_STARTING,
-                               "AP_EXYNOS4_MCT_TIMER_STARTING",
+                               "clockevents/exynos4/mct_timer:starting",
                                exynos4_mct_starting_cpu,
                                exynos4_mct_dying_cpu);
        if (err)
index 54e1665aa03c26c20b5e6236e1d3aac4be6871f3..4e4146f69845777bb7447cecd7e5c9e57c21da2c 100644 (file)
@@ -240,7 +240,7 @@ static int __init jcore_pit_init(struct device_node *node)
        }
 
        cpuhp_setup_state(CPUHP_AP_JCORE_TIMER_STARTING,
-                         "AP_JCORE_TIMER_STARTING",
+                         "clockevents/jcore:starting",
                          jcore_pit_local_init, NULL);
 
        return 0;
index a80ab3e446b7111476a007f975930572f7afe537..172f43d4bc1af073af4329723b1fe290b963e9b3 100644 (file)
@@ -154,6 +154,6 @@ int __init metag_generic_timer_init(void)
 
        /* Hook cpu boot to configure the CPU's timers */
        return cpuhp_setup_state(CPUHP_AP_METAG_TIMER_STARTING,
-                                "AP_METAG_TIMER_STARTING",
+                                "clockevents/metag:starting",
                                 arch_timer_starting_cpu, NULL);
 }
index 7a960cd0110494a0c5b885fd6e89b81f3fec9c9c..d9278847ffb25070c4aaca5387319ccd2f0ea9e5 100644 (file)
@@ -120,8 +120,8 @@ static int gic_clockevent_init(void)
        }
 
        cpuhp_setup_state(CPUHP_AP_MIPS_GIC_TIMER_STARTING,
-                         "AP_MIPS_GIC_TIMER_STARTING", gic_starting_cpu,
-                         gic_dying_cpu);
+                         "clockevents/mips/gic/timer:starting",
+                         gic_starting_cpu, gic_dying_cpu);
        return 0;
 }
 
index 3283cfa2aa526dd9292fde87529d4b794458e97b..3bf65fff5c08bef6e8f41a1ee5577b4e0bbd6493 100644 (file)
@@ -182,7 +182,7 @@ static int __init msm_timer_init(u32 dgt_hz, int sched_bits, int irq,
        } else {
                /* Install and invoke hotplug callbacks */
                res = cpuhp_setup_state(CPUHP_AP_QCOM_TIMER_STARTING,
-                                       "AP_QCOM_TIMER_STARTING",
+                                       "clockevents/qcom/timer:starting",
                                        msm_local_timer_starting_cpu,
                                        msm_local_timer_dying_cpu);
                if (res) {
index 3c39e6f459714e5b725cfdd10663fb04dd62063b..4440aefc59cdefd9c5b859952a59724d3c37cbf6 100644 (file)
@@ -320,7 +320,7 @@ static int __init armada_370_xp_timer_common_init(struct device_node *np)
        }
 
        res = cpuhp_setup_state(CPUHP_AP_ARMADA_TIMER_STARTING,
-                               "AP_ARMADA_TIMER_STARTING",
+                               "clockevents/armada:starting",
                                armada_370_xp_timer_starting_cpu,
                                armada_370_xp_timer_dying_cpu);
        if (res) {
index 4334e0330ada48729cd63a7033eacc45fc84c8f1..3c23e1744f4a7b19db773885b5d9a6aab3b41c1f 100644 (file)
@@ -221,7 +221,7 @@ static int __init sirfsoc_clockevent_init(void)
 
        /* Install and invoke hotplug callbacks */
        return cpuhp_setup_state(CPUHP_AP_MARCO_TIMER_STARTING,
-                                "AP_MARCO_TIMER_STARTING",
+                                "clockevents/marco:starting",
                                 sirfsoc_local_timer_starting_cpu,
                                 sirfsoc_local_timer_dying_cpu);
 }
index 3fe368b23d158d56563285052df9aecb869d3ef2..a51b6b64ecdf01ff61938608e89e9d24bcfab13a 100644 (file)
@@ -804,10 +804,10 @@ static int etm_probe(struct amba_device *adev, const struct amba_id *id)
 
        if (!etm_count++) {
                cpuhp_setup_state_nocalls(CPUHP_AP_ARM_CORESIGHT_STARTING,
-                                         "AP_ARM_CORESIGHT_STARTING",
+                                         "arm/coresight:starting",
                                          etm_starting_cpu, etm_dying_cpu);
                ret = cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN,
-                                               "AP_ARM_CORESIGHT_ONLINE",
+                                               "arm/coresight:online",
                                                etm_online_cpu, NULL);
                if (ret < 0)
                        goto err_arch_supported;
index 4db8d6a4d0cbbe0545e5724b7de75fbae0438c68..5edc63fbb06f1964baeddc3aab6d3a2fcfbe4630 100644 (file)
@@ -987,10 +987,10 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id)
 
        if (!etm4_count++) {
                cpuhp_setup_state_nocalls(CPUHP_AP_ARM_CORESIGHT4_STARTING,
-                                         "AP_ARM_CORESIGHT4_STARTING",
+                                         "arm/coresight4:starting",
                                          etm4_starting_cpu, etm4_dying_cpu);
                ret = cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN,
-                                               "AP_ARM_CORESIGHT4_ONLINE",
+                                               "arm/coresight4:online",
                                                etm4_online_cpu, NULL);
                if (ret < 0)
                        goto err_arch_supported;
index 8bcee65a0b8c92a22c8d49ac362656a19233e04f..9d9c2c45916aea18945e2455b1133a4afe55fb0f 100644 (file)
@@ -578,13 +578,13 @@ static int __init armada_370_xp_mpic_of_init(struct device_node *node,
 #ifdef CONFIG_SMP
                set_smp_cross_call(armada_mpic_send_doorbell);
                cpuhp_setup_state_nocalls(CPUHP_AP_IRQ_ARMADA_XP_STARTING,
-                                         "AP_IRQ_ARMADA_XP_STARTING",
+                                         "irqchip/armada/ipi:starting",
                                          armada_xp_mpic_starting_cpu, NULL);
 #endif
        } else {
 #ifdef CONFIG_SMP
                cpuhp_setup_state_nocalls(CPUHP_AP_IRQ_ARMADA_CASC_STARTING,
-                                         "AP_IRQ_ARMADA_CASC_STARTING",
+                                         "irqchip/armada/cascade:starting",
                                          mpic_cascaded_starting_cpu, NULL);
 #endif
                irq_set_chained_handler(parent_irq,
index d96b2c947e74e3edab3917551c64fbd1ced0f34c..e7463e3c08143acae3e8cc5682f918c6a0b07ebd 100644 (file)
@@ -245,7 +245,7 @@ bcm2836_arm_irqchip_smp_init(void)
 #ifdef CONFIG_SMP
        /* Unmask IPIs to the boot CPU. */
        cpuhp_setup_state(CPUHP_AP_IRQ_BCM2836_STARTING,
-                         "AP_IRQ_BCM2836_STARTING", bcm2836_cpu_starting,
+                         "irqchip/bcm2836:starting", bcm2836_cpu_starting,
                          bcm2836_cpu_dying);
 
        set_smp_cross_call(bcm2836_arm_irqchip_send_ipi);
index 26e1d7fafb1e088d3e7f389112a1799022bea3ab..d696de1a29fbae9e8e58118f923ac7c1ea9f5fd3 100644 (file)
@@ -633,8 +633,8 @@ static void gic_smp_init(void)
 {
        set_smp_cross_call(gic_raise_softirq);
        cpuhp_setup_state_nocalls(CPUHP_AP_IRQ_GICV3_STARTING,
-                                 "AP_IRQ_GICV3_STARTING", gic_starting_cpu,
-                                 NULL);
+                                 "irqchip/arm/gicv3:starting",
+                                 gic_starting_cpu, NULL);
 }
 
 static int gic_set_affinity(struct irq_data *d, const struct cpumask *mask_val,
index d6c404b3584d5118799f8376d384c2f71b728a69..1b1df4f770bdefe0a16e0109624801f8af90f1f7 100644 (file)
@@ -1191,7 +1191,7 @@ static int __init __gic_init_bases(struct gic_chip_data *gic,
                set_smp_cross_call(gic_raise_softirq);
 #endif
                cpuhp_setup_state_nocalls(CPUHP_AP_IRQ_GIC_STARTING,
-                                         "AP_IRQ_GIC_STARTING",
+                                         "irqchip/arm/gic:starting",
                                          gic_starting_cpu, NULL);
                set_handle_irq(gic_handle_irq);
                if (static_key_true(&supports_deactivate))
index 021b0e0833c1f0775c246272b8eeedd0134ddae7..c1b4ee955dbef6e05092efd36e4658ee7d91df4f 100644 (file)
@@ -407,7 +407,7 @@ hip04_of_init(struct device_node *node, struct device_node *parent)
        set_handle_irq(hip04_handle_irq);
 
        hip04_irq_dist_init(&hip04_data);
-       cpuhp_setup_state(CPUHP_AP_IRQ_HIP04_STARTING, "AP_IRQ_HIP04_STARTING",
+       cpuhp_setup_state(CPUHP_AP_IRQ_HIP04_STARTING, "irqchip/hip04:starting",
                          hip04_irq_starting_cpu, NULL);
        return 0;
 }
index 9719caf7437c3aa71dfa6423ec5b07221f8a2e51..a41896468cb328e89a44e13590a0ae611f413106 100644 (file)
@@ -127,7 +127,7 @@ static int __init ledtrig_cpu_init(void)
 
        register_syscore_ops(&ledtrig_cpu_syscore_ops);
 
-       ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "AP_LEDTRIG_STARTING",
+       ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "leds/trigger:starting",
                                ledtrig_online_cpu, ledtrig_prepare_down_cpu);
        if (ret < 0)
                pr_err("CPU hotplug notifier for ledtrig-cpu could not be registered: %d\n",
index 5deeda61d6d3df0531c8fb1431186dc6d7125ecc..4a105006ca637bc985698fa378ff6d14e1494b3f 100644 (file)
@@ -2484,13 +2484,13 @@ static __init int virtio_net_driver_init(void)
 {
        int ret;
 
-       ret = cpuhp_setup_state_multi(CPUHP_AP_ONLINE_DYN, "AP_VIRT_NET_ONLINE",
+       ret = cpuhp_setup_state_multi(CPUHP_AP_ONLINE_DYN, "virtio/net:online",
                                      virtnet_cpu_online,
                                      virtnet_cpu_down_prep);
        if (ret < 0)
                goto out;
        virtionet_online = ret;
-       ret = cpuhp_setup_state_multi(CPUHP_VIRT_NET_DEAD, "VIRT_NET_DEAD",
+       ret = cpuhp_setup_state_multi(CPUHP_VIRT_NET_DEAD, "virtio/net:dead",
                                      NULL, virtnet_cpu_dead);
        if (ret)
                goto err_dead;
index b37b5729456663bc1639d7ed544634432d883470..6d9335865880e18bd3d8e6172e876fe38180a22a 100644 (file)
@@ -1084,7 +1084,7 @@ static int arm_pmu_hp_init(void)
        int ret;
 
        ret = cpuhp_setup_state_multi(CPUHP_AP_PERF_ARM_STARTING,
-                                     "AP_PERF_ARM_STARTING",
+                                     "perf/arm/pmu:starting",
                                      arm_perf_starting_cpu, NULL);
        if (ret)
                pr_err("CPU hotplug notifier for ARM PMU could not be registered: %d\n",
index 7ef27c6ed72fb397167aaf86384da4adf947d6e6..c03f9c86c7e37d580032d1553e829a6f14ef2014 100644 (file)
@@ -445,7 +445,7 @@ int __init xen_evtchn_fifo_init(void)
        evtchn_ops = &evtchn_ops_fifo;
 
        cpuhp_setup_state_nocalls(CPUHP_XEN_EVTCHN_PREPARE,
-                                 "CPUHP_XEN_EVTCHN_PREPARE",
+                                 "xen/evtchn:prepare",
                                  xen_evtchn_cpu_prepare, xen_evtchn_cpu_dead);
 out:
        put_cpu();
index ae95fc0e32143083b1e5aa34286cb6e771f043dc..5b4f60d433142bdd9ae9ceb31db38e9800bf1c0d 100644 (file)
@@ -456,7 +456,7 @@ int kvm_timer_hyp_init(void)
        kvm_info("virtual timer IRQ%d\n", host_vtimer_irq);
 
        cpuhp_setup_state(CPUHP_AP_KVM_ARM_TIMER_STARTING,
-                         "AP_KVM_ARM_TIMER_STARTING", kvm_timer_starting_cpu,
+                         "kvm/arm/timer:starting", kvm_timer_starting_cpu,
                          kvm_timer_dying_cpu);
        return err;
 }
index 8cebfbc19e90ef053ec325f7d7d75ab7e626a049..5114391b7e5af52ee5f815baead6b4561243a31a 100644 (file)
@@ -428,7 +428,7 @@ int kvm_vgic_hyp_init(void)
        }
 
        ret = cpuhp_setup_state(CPUHP_AP_KVM_ARM_VGIC_INIT_STARTING,
-                               "AP_KVM_ARM_VGIC_INIT_STARTING",
+                               "kvm/arm/vgic:starting",
                                vgic_init_cpu_starting, vgic_init_cpu_dying);
        if (ret) {
                kvm_err("Cannot register vgic CPU notifier\n");
index de102cae7125b5d2515aad0b9e660c53e520c1e4..ec298b7ca556e5c3e66f85bb77b334cd86182d1f 100644 (file)
@@ -3944,7 +3944,7 @@ int kvm_init(void *opaque, unsigned vcpu_size, unsigned vcpu_align,
                        goto out_free_1;
        }
 
-       r = cpuhp_setup_state_nocalls(CPUHP_AP_KVM_STARTING, "AP_KVM_STARTING",
+       r = cpuhp_setup_state_nocalls(CPUHP_AP_KVM_STARTING, "kvm/cpu:starting",
                                      kvm_starting_cpu, kvm_dying_cpu);
        if (r)
                goto out_free_2;