[PATCH 3/9] tracing/x86: No need to disable interrupts when calling arch_init_ideal_nop5

From: Steven Rostedt
Date: Tue Oct 05 2010 - 23:37:50 EST


From: Steven Rostedt <srostedt@xxxxxxxxxx>

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 <rostedt@xxxxxxxxxxx>
---
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 ebd80d5..13955a1 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


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/