/* This function should be used by panic code. It stops ftrace but in a not so nice way. If you need to simply kill ftrace from a non-atomic section, use ftrace_kill.  */
void ftrace_kill(void)
/* This function should be used by panic code. It stops ftrace but in a not so nice way. If you need to simply kill ftrace from a non-atomic section, use ftrace_kill.  */
void ftrace_kill(void)
{
	ftrace_disabled = 1;
	ftrace_enabled = 0;
	clear_ftrace_function();
}