瀏覽代碼

stop_machine: fix up ftrace.c

Simple conversion.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Abhishek Sagar <sagar.abhishek@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Steven Rostedt <rostedt@goodmis.org>
Rusty Russell 17 年之前
父節點
當前提交
784e2d7600
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      kernel/trace/ftrace.c

+ 3 - 3
kernel/trace/ftrace.c

@@ -587,7 +587,7 @@ static int __ftrace_modify_code(void *data)
 
 
 static void ftrace_run_update_code(int command)
 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)
 void ftrace_disable_daemon(void)
@@ -787,7 +787,7 @@ static int ftrace_update_code(void)
 	    !ftrace_enabled || !ftraced_trigger)
 	    !ftrace_enabled || !ftraced_trigger)
 		return 0;
 		return 0;
 
 
-	stop_machine_run(__ftrace_update_code, NULL, NR_CPUS);
+	stop_machine(__ftrace_update_code, NULL, NULL);
 
 
 	return 1;
 	return 1;
 }
 }
@@ -1564,7 +1564,7 @@ static int __init ftrace_dynamic_init(void)
 
 
 	addr = (unsigned long)ftrace_record_ip;
 	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 */
 	/* ftrace_dyn_arch_init places the return code in addr */
 	if (addr) {
 	if (addr) {