aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2010-06-11 07:35:08 -0400
committerIngo Molnar <mingo@elte.hu>2010-09-09 14:38:52 -0400
commit5e11637e2c929e34dcc0fbbfb48bdb638937701a (patch)
treeed782662362ee0ea5ac888588664aeb97e6f1312 /kernel
parent9cb627d5f38830ca19aa0dca52d1d3a633018bf7 (diff)
perf: Fix CPU hotplug
Since we have UP_PREPARE, we should also have UP_CANCELED. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: paulus <paulus@samba.org> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/perf_event.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c
index 657555a5f30f..db5b56064687 100644
--- a/kernel/perf_event.c
+++ b/kernel/perf_event.c
@@ -5761,15 +5761,15 @@ perf_cpu_notify(struct notifier_block *self, unsigned long action, void *hcpu)
5761{ 5761{
5762 unsigned int cpu = (long)hcpu; 5762 unsigned int cpu = (long)hcpu;
5763 5763
5764 switch (action) { 5764 switch (action & ~CPU_TASKS_FROZEN) {
5765 5765
5766 case CPU_UP_PREPARE: 5766 case CPU_UP_PREPARE:
5767 case CPU_UP_PREPARE_FROZEN: 5767 case CPU_DOWN_FAILED:
5768 perf_event_init_cpu(cpu); 5768 perf_event_init_cpu(cpu);
5769 break; 5769 break;
5770 5770
5771 case CPU_UP_CANCELED:
5771 case CPU_DOWN_PREPARE: 5772 case CPU_DOWN_PREPARE:
5772 case CPU_DOWN_PREPARE_FROZEN:
5773 perf_event_exit_cpu(cpu); 5773 perf_event_exit_cpu(cpu);
5774 break; 5774 break;
5775 5775