diff options
Diffstat (limited to 'arch/mips/kernel/ftrace.c')
-rw-r--r-- | arch/mips/kernel/ftrace.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/kernel/ftrace.c b/arch/mips/kernel/ftrace.c index 60e7e5e45af1..8b6538750fe1 100644 --- a/arch/mips/kernel/ftrace.c +++ b/arch/mips/kernel/ftrace.c | |||
@@ -302,6 +302,9 @@ void prepare_ftrace_return(unsigned long *parent_ra_addr, unsigned long self_ra, | |||
302 | &return_to_handler; | 302 | &return_to_handler; |
303 | int faulted, insns; | 303 | int faulted, insns; |
304 | 304 | ||
305 | if (unlikely(ftrace_graph_is_dead())) | ||
306 | return; | ||
307 | |||
305 | if (unlikely(atomic_read(¤t->tracing_graph_pause))) | 308 | if (unlikely(atomic_read(¤t->tracing_graph_pause))) |
306 | return; | 309 | return; |
307 | 310 | ||