From: Steven Rostedt The function arch_init_ideal_nop5() is taken from the original ftrace_dyn_arch_init() that originally had interrupts disabled when calling it. This was due to the old way that mcounts were converted to nops. The disabling of interrupts is no longer needed for the work that is done. Signed-off-by: Steven Rostedt --- kernel/trace/ftrace.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 65fb077..1ce8f24 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -2795,15 +2795,13 @@ extern unsigned long __stop_mcount_loc[]; void __init ftrace_init(void) { - unsigned long count, addr, flags; + unsigned long count, addr; int ret; /* Keep the ftrace pointer to the stub */ addr = (unsigned long)ftrace_stub; - local_irq_save(flags); ftrace_dyn_arch_init(&addr); - local_irq_restore(flags); /* ftrace_dyn_arch_init places the return code in addr */ if (addr) -- 1.7.1