diff options
Diffstat (limited to 'arch/mips/kernel/mcount.S')
-rw-r--r-- | arch/mips/kernel/mcount.S | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/kernel/mcount.S b/arch/mips/kernel/mcount.S index cebcc3c11305..cbb45edad464 100644 --- a/arch/mips/kernel/mcount.S +++ b/arch/mips/kernel/mcount.S | |||
@@ -59,6 +59,9 @@ | |||
59 | .endm | 59 | .endm |
60 | 60 | ||
61 | NESTED(_mcount, PT_SIZE, ra) | 61 | NESTED(_mcount, PT_SIZE, ra) |
62 | lw t0, function_trace_stop | ||
63 | bnez t0, ftrace_stub | ||
64 | nop | ||
62 | PTR_LA t0, ftrace_stub | 65 | PTR_LA t0, ftrace_stub |
63 | PTR_L t1, ftrace_trace_function /* Prepare t1 for (1) */ | 66 | PTR_L t1, ftrace_trace_function /* Prepare t1 for (1) */ |
64 | bne t0, t1, static_trace | 67 | bne t0, t1, static_trace |