diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-05-21 11:49:57 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-05-21 11:49:57 -0400 |
commit | ff5f149b6aec8edbfa3698721667acd043009a33 (patch) | |
tree | d052553eb296dfee3f01b1cb2b717cb7ccf3127a /kernel/stop_machine.c | |
parent | f0218b3e9974f06014b61be8987159f4a20e011e (diff) | |
parent | 580d607cd666dfabfc1c7b0fb08c8ac690c7c87f (diff) |
Merge branch 'perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip into trace/tip/tracing/core-7
Conflicts:
include/linux/ftrace_event.h
include/trace/ftrace.h
kernel/trace/trace_event_perf.c
kernel/trace/trace_kprobe.c
kernel/trace/trace_syscalls.c
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/stop_machine.c')
-rw-r--r-- | kernel/stop_machine.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/stop_machine.c b/kernel/stop_machine.c index ef51d1fcf5e6..b4e7431e7c78 100644 --- a/kernel/stop_machine.c +++ b/kernel/stop_machine.c | |||
@@ -294,7 +294,6 @@ static int __cpuinit cpu_stop_cpu_callback(struct notifier_block *nfb, | |||
294 | struct sched_param param = { .sched_priority = MAX_RT_PRIO - 1 }; | 294 | struct sched_param param = { .sched_priority = MAX_RT_PRIO - 1 }; |
295 | unsigned int cpu = (unsigned long)hcpu; | 295 | unsigned int cpu = (unsigned long)hcpu; |
296 | struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); | 296 | struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); |
297 | struct cpu_stop_work *work; | ||
298 | struct task_struct *p; | 297 | struct task_struct *p; |
299 | 298 | ||
300 | switch (action & ~CPU_TASKS_FROZEN) { | 299 | switch (action & ~CPU_TASKS_FROZEN) { |
@@ -323,6 +322,9 @@ static int __cpuinit cpu_stop_cpu_callback(struct notifier_block *nfb, | |||
323 | #ifdef CONFIG_HOTPLUG_CPU | 322 | #ifdef CONFIG_HOTPLUG_CPU |
324 | case CPU_UP_CANCELED: | 323 | case CPU_UP_CANCELED: |
325 | case CPU_DEAD: | 324 | case CPU_DEAD: |
325 | { | ||
326 | struct cpu_stop_work *work; | ||
327 | |||
326 | /* kill the stopper */ | 328 | /* kill the stopper */ |
327 | kthread_stop(stopper->thread); | 329 | kthread_stop(stopper->thread); |
328 | /* drain remaining works */ | 330 | /* drain remaining works */ |
@@ -335,6 +337,7 @@ static int __cpuinit cpu_stop_cpu_callback(struct notifier_block *nfb, | |||
335 | put_task_struct(stopper->thread); | 337 | put_task_struct(stopper->thread); |
336 | stopper->thread = NULL; | 338 | stopper->thread = NULL; |
337 | break; | 339 | break; |
340 | } | ||
338 | #endif | 341 | #endif |
339 | } | 342 | } |
340 | 343 | ||