Skip to content

Commit b4f75d4

Browse files
KAGA-KOKOIngo Molnar
authored andcommitted
perf/core: Remove bogus UP_CANCELED hotplug state
If CPU_UP_PREPARE fails the perf hotplug code calls perf_event_exit_cpu(), which is a pointless exercise. The cpu is not online, so the smp function calls return -ENXIO. So the result is a list walk to call noops. Remove it. Signed-off-by: Thomas Gleixner <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Vince Weaver <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 8bc9162 commit b4f75d4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kernel/events/core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9286,7 +9286,6 @@ perf_cpu_notify(struct notifier_block *self, unsigned long action, void *hcpu)
92869286
perf_event_init_cpu(cpu);
92879287
break;
92889288

9289-
case CPU_UP_CANCELED:
92909289
case CPU_DOWN_PREPARE:
92919290
perf_event_exit_cpu(cpu);
92929291
break;

0 commit comments

Comments
 (0)