aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/Kconfig1
-rw-r--r--arch/sparc/lib/mcount.S10
2 files changed, 2 insertions, 9 deletions
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index 407c87d9879a..4692c90936f1 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -55,7 +55,6 @@ config SPARC64
55 select HAVE_FUNCTION_TRACER 55 select HAVE_FUNCTION_TRACER
56 select HAVE_FUNCTION_GRAPH_TRACER 56 select HAVE_FUNCTION_GRAPH_TRACER
57 select HAVE_FUNCTION_GRAPH_FP_TEST 57 select HAVE_FUNCTION_GRAPH_FP_TEST
58 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
59 select HAVE_KRETPROBES 58 select HAVE_KRETPROBES
60 select HAVE_KPROBES 59 select HAVE_KPROBES
61 select HAVE_RCU_TABLE_FREE if SMP 60 select HAVE_RCU_TABLE_FREE if SMP
diff --git a/arch/sparc/lib/mcount.S b/arch/sparc/lib/mcount.S
index 3ad6cbdc2163..0b0ed4d34219 100644
--- a/arch/sparc/lib/mcount.S
+++ b/arch/sparc/lib/mcount.S
@@ -24,10 +24,7 @@ mcount:
24#ifdef CONFIG_DYNAMIC_FTRACE 24#ifdef CONFIG_DYNAMIC_FTRACE
25 /* Do nothing, the retl/nop below is all we need. */ 25 /* Do nothing, the retl/nop below is all we need. */
26#else 26#else
27 sethi %hi(function_trace_stop), %g1 27 sethi %hi(ftrace_trace_function), %g1
28 lduw [%g1 + %lo(function_trace_stop)], %g2
29 brnz,pn %g2, 2f
30 sethi %hi(ftrace_trace_function), %g1
31 sethi %hi(ftrace_stub), %g2 28 sethi %hi(ftrace_stub), %g2
32 ldx [%g1 + %lo(ftrace_trace_function)], %g1 29 ldx [%g1 + %lo(ftrace_trace_function)], %g1
33 or %g2, %lo(ftrace_stub), %g2 30 or %g2, %lo(ftrace_stub), %g2
@@ -80,11 +77,8 @@ ftrace_stub:
80 .globl ftrace_caller 77 .globl ftrace_caller
81 .type ftrace_caller,#function 78 .type ftrace_caller,#function
82ftrace_caller: 79ftrace_caller:
83 sethi %hi(function_trace_stop), %g1
84 mov %i7, %g2 80 mov %i7, %g2
85 lduw [%g1 + %lo(function_trace_stop)], %g1 81 mov %fp, %g3
86 brnz,pn %g1, ftrace_stub
87 mov %fp, %g3
88 save %sp, -176, %sp 82 save %sp, -176, %sp
89 mov %g2, %o1 83 mov %g2, %o1
90 mov %g2, %l0 84 mov %g2, %l0