Skip to content

Commit

Permalink
stop_machine: fix up ftrace.c
Browse files Browse the repository at this point in the history
Simple conversion.

Signed-off-by: Rusty Russell <[email protected]>
Cc: Abhishek Sagar <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Steven Rostedt <[email protected]>
  • Loading branch information
rustyrussell committed Jul 28, 2008
1 parent 9b1a4d3 commit 784e2d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ static int __ftrace_modify_code(void *data)

static void ftrace_run_update_code(int command)
{
stop_machine_run(__ftrace_modify_code, &command, NR_CPUS);
stop_machine(__ftrace_modify_code, &command, NULL);
}

void ftrace_disable_daemon(void)
Expand Down Expand Up @@ -787,7 +787,7 @@ static int ftrace_update_code(void)
!ftrace_enabled || !ftraced_trigger)
return 0;

stop_machine_run(__ftrace_update_code, NULL, NR_CPUS);
stop_machine(__ftrace_update_code, NULL, NULL);

return 1;
}
Expand Down Expand Up @@ -1564,7 +1564,7 @@ static int __init ftrace_dynamic_init(void)

addr = (unsigned long)ftrace_record_ip;

stop_machine_run(ftrace_dyn_arch_init, &addr, NR_CPUS);
stop_machine(ftrace_dyn_arch_init, &addr, NULL);

/* ftrace_dyn_arch_init places the return code in addr */
if (addr) {
Expand Down

0 comments on commit 784e2d7

Please sign in to comment.