]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/trace/ftrace.c
stop_machine: fix up ftrace.c
[linux-2.6-omap-h63xx.git] / kernel / trace / ftrace.c
index 1359632668a44ac8d4c5c2527a5373684d34bd4c..f6e3af31b403d8eaa77128712fdb594ca48be0c0 100644 (file)
@@ -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)
@@ -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;
 }
@@ -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) {
@@ -1612,7 +1612,9 @@ void ftrace_kill_atomic(void)
 {
        ftrace_disabled = 1;
        ftrace_enabled = 0;
+#ifdef CONFIG_DYNAMIC_FTRACE
        ftraced_suspend = -1;
+#endif
        clear_ftrace_function();
 }