Skip to content

Commit 36e5b0e

Browse files
committed
coresight/etm3/4x: Consolidate hotplug state space
Even if both drivers are compiled in only one instance can run on a given system depending on the available tracer cell. So having seperate hotplug states for them is pointless. Signed-off-by: Thomas Gleixner <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Sebastian Siewior <[email protected]> Cc: Mathieu Poirier <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
1 parent 73c1b41 commit 36e5b0e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

drivers/hwtracing/coresight/coresight-etm4x.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id)
986986
dev_err(dev, "ETM arch init failed\n");
987987

988988
if (!etm4_count++) {
989-
cpuhp_setup_state_nocalls(CPUHP_AP_ARM_CORESIGHT4_STARTING,
989+
cpuhp_setup_state_nocalls(CPUHP_AP_ARM_CORESIGHT_STARTING,
990990
"arm/coresight4:starting",
991991
etm4_starting_cpu, etm4_dying_cpu);
992992
ret = cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN,
@@ -1037,7 +1037,7 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id)
10371037

10381038
err_arch_supported:
10391039
if (--etm4_count == 0) {
1040-
cpuhp_remove_state_nocalls(CPUHP_AP_ARM_CORESIGHT4_STARTING);
1040+
cpuhp_remove_state_nocalls(CPUHP_AP_ARM_CORESIGHT_STARTING);
10411041
if (hp_online)
10421042
cpuhp_remove_state_nocalls(hp_online);
10431043
}

include/linux/cpuhotplug.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ enum cpuhp_state {
119119
CPUHP_AP_DUMMY_TIMER_STARTING,
120120
CPUHP_AP_ARM_XEN_STARTING,
121121
CPUHP_AP_ARM_CORESIGHT_STARTING,
122-
CPUHP_AP_ARM_CORESIGHT4_STARTING,
123122
CPUHP_AP_ARM64_ISNDEP_STARTING,
124123
CPUHP_AP_SMPCFD_DYING,
125124
CPUHP_AP_X86_TBOOT_DYING,

0 commit comments

Comments
 (0)