Commit 92783263 authored by Philippe Gerum's avatar Philippe Gerum

ftrace: ipipe: rely on fully atomic stop_machine() handler

Now that stop_machine() guarantees fully atomic execution of the stop
routine via hard interrupt disabling, there is no point in using
ipipe_critical_enter/exit() for the same purpose in order to patch the
kernel text.
parent aed125e2
......@@ -2716,13 +2716,7 @@ static void ftrace_run_update_code(int command)
* is safe. The stop_machine() is the safest, but also
* produces the most overhead.
*/
#ifdef CONFIG_IPIPE
flags = ipipe_critical_enter(NULL);
__ftrace_modify_code(&command);
ipipe_critical_exit(flags);
#else /* !CONFIG_IPIPE */
arch_ftrace_update_code(command);
#endif /* !CONFIG_IPIPE */
ret = ftrace_arch_code_modify_post_process();
FTRACE_WARN_ON(ret);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment