diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-28 11:37:46 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-28 11:37:46 -0400 |
| commit | 37eaf8c7463e53cf1acf025fb566fb6c4573297f (patch) | |
| tree | 9df7e9e3e7722d9ddf257e19fd8551425d27a292 /kernel/trace/ftrace.c | |
| parent | 58f250714f2bfa3514798fde8b9d38a15e4a9836 (diff) | |
| parent | 784e2d76007f90d69341b95967160c4fb7829299 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus
* git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus:
stop_machine: fix up ftrace.c
stop_machine: Wean existing callers off stop_machine_run()
stop_machine(): stop_machine_run() changed to use cpu mask
Hotplug CPU: don't check cpu_online after take_cpu_down
Simplify stop_machine
stop_machine: add ALL_CPUS option
module: fix build warning with !CONFIG_KALLSYMS
Diffstat (limited to 'kernel/trace/ftrace.c')
| -rw-r--r-- | kernel/trace/ftrace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 4231a3dc224a..f6e3af31b403 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
| @@ -587,7 +587,7 @@ static int __ftrace_modify_code(void *data) | |||
| 587 | 587 | ||
| 588 | static void ftrace_run_update_code(int command) | 588 | static void ftrace_run_update_code(int command) |
| 589 | { | 589 | { |
| 590 | stop_machine_run(__ftrace_modify_code, &command, NR_CPUS); | 590 | stop_machine(__ftrace_modify_code, &command, NULL); |
| 591 | } | 591 | } |
| 592 | 592 | ||
| 593 | void ftrace_disable_daemon(void) | 593 | void ftrace_disable_daemon(void) |
| @@ -787,7 +787,7 @@ static int ftrace_update_code(void) | |||
| 787 | !ftrace_enabled || !ftraced_trigger) | 787 | !ftrace_enabled || !ftraced_trigger) |
| 788 | return 0; | 788 | return 0; |
| 789 | 789 | ||
| 790 | stop_machine_run(__ftrace_update_code, NULL, NR_CPUS); | 790 | stop_machine(__ftrace_update_code, NULL, NULL); |
| 791 | 791 | ||
| 792 | return 1; | 792 | return 1; |
| 793 | } | 793 | } |
| @@ -1564,7 +1564,7 @@ static int __init ftrace_dynamic_init(void) | |||
| 1564 | 1564 | ||
| 1565 | addr = (unsigned long)ftrace_record_ip; | 1565 | addr = (unsigned long)ftrace_record_ip; |
| 1566 | 1566 | ||
| 1567 | stop_machine_run(ftrace_dyn_arch_init, &addr, NR_CPUS); | 1567 | stop_machine(ftrace_dyn_arch_init, &addr, NULL); |
| 1568 | 1568 | ||
| 1569 | /* ftrace_dyn_arch_init places the return code in addr */ | 1569 | /* ftrace_dyn_arch_init places the return code in addr */ |
| 1570 | if (addr) { | 1570 | if (addr) { |
