aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/Kconfig1
-rw-r--r--arch/mips/kernel/mcount.S3
2 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 632dba2ac300..d203dbfa8037 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -6,6 +6,7 @@ config MIPS
6 select HAVE_OPROFILE 6 select HAVE_OPROFILE
7 select HAVE_ARCH_KGDB 7 select HAVE_ARCH_KGDB
8 select HAVE_FUNCTION_TRACER 8 select HAVE_FUNCTION_TRACER
9 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
9 # Horrible source of confusion. Die, die, die ... 10 # Horrible source of confusion. Die, die, die ...
10 select EMBEDDED 11 select EMBEDDED
11 select RTC_LIB if !MACH_LOONGSON 12 select RTC_LIB if !MACH_LOONGSON
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
61NESTED(_mcount, PT_SIZE, ra) 61NESTED(_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