diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2014-06-25 12:40:30 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-07-18 13:58:09 -0400 |
commit | ad515ea2882ee3af1a180d827bfdb5767e0a9455 (patch) | |
tree | eef6dd8316ce80bfe6348b30459fa260424c3c16 | |
parent | 8c39a514eeaed80d56f9006b560251892d3a3a9f (diff) |
metag: ftrace: Remove check of obsolete variable function_trace_stop
Nothing sets function_trace_stop to disable function tracing anymore.
Remove the check for it in the arch code.
Acked-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | arch/metag/Kconfig | 1 | ||||
-rw-r--r-- | arch/metag/kernel/ftrace_stub.S | 14 |
2 files changed, 0 insertions, 15 deletions
diff --git a/arch/metag/Kconfig b/arch/metag/Kconfig index 499b7610eaaf..0b389a81c43a 100644 --- a/arch/metag/Kconfig +++ b/arch/metag/Kconfig | |||
@@ -13,7 +13,6 @@ config METAG | |||
13 | select HAVE_DYNAMIC_FTRACE | 13 | select HAVE_DYNAMIC_FTRACE |
14 | select HAVE_FTRACE_MCOUNT_RECORD | 14 | select HAVE_FTRACE_MCOUNT_RECORD |
15 | select HAVE_FUNCTION_TRACER | 15 | select HAVE_FUNCTION_TRACER |
16 | select HAVE_FUNCTION_TRACE_MCOUNT_TEST | ||
17 | select HAVE_KERNEL_BZIP2 | 16 | select HAVE_KERNEL_BZIP2 |
18 | select HAVE_KERNEL_GZIP | 17 | select HAVE_KERNEL_GZIP |
19 | select HAVE_KERNEL_LZO | 18 | select HAVE_KERNEL_LZO |
diff --git a/arch/metag/kernel/ftrace_stub.S b/arch/metag/kernel/ftrace_stub.S index e70bff745bdd..3acc288217c0 100644 --- a/arch/metag/kernel/ftrace_stub.S +++ b/arch/metag/kernel/ftrace_stub.S | |||
@@ -16,13 +16,6 @@ _mcount_wrapper: | |||
16 | .global _ftrace_caller | 16 | .global _ftrace_caller |
17 | .type _ftrace_caller,function | 17 | .type _ftrace_caller,function |
18 | _ftrace_caller: | 18 | _ftrace_caller: |
19 | MOVT D0Re0,#HI(_function_trace_stop) | ||
20 | ADD D0Re0,D0Re0,#LO(_function_trace_stop) | ||
21 | GETD D0Re0,[D0Re0] | ||
22 | CMP D0Re0,#0 | ||
23 | BEQ $Lcall_stub | ||
24 | MOV PC,D0.4 | ||
25 | $Lcall_stub: | ||
26 | MSETL [A0StP], D0Ar6, D0Ar4, D0Ar2, D0.4 | 19 | MSETL [A0StP], D0Ar6, D0Ar4, D0Ar2, D0.4 |
27 | MOV D1Ar1, D0.4 | 20 | MOV D1Ar1, D0.4 |
28 | MOV D0Ar2, D1RtP | 21 | MOV D0Ar2, D1RtP |
@@ -42,13 +35,6 @@ _ftrace_call: | |||
42 | .global _mcount_wrapper | 35 | .global _mcount_wrapper |
43 | .type _mcount_wrapper,function | 36 | .type _mcount_wrapper,function |
44 | _mcount_wrapper: | 37 | _mcount_wrapper: |
45 | MOVT D0Re0,#HI(_function_trace_stop) | ||
46 | ADD D0Re0,D0Re0,#LO(_function_trace_stop) | ||
47 | GETD D0Re0,[D0Re0] | ||
48 | CMP D0Re0,#0 | ||
49 | BEQ $Lcall_mcount | ||
50 | MOV PC,D0.4 | ||
51 | $Lcall_mcount: | ||
52 | MSETL [A0StP], D0Ar6, D0Ar4, D0Ar2, D0.4 | 38 | MSETL [A0StP], D0Ar6, D0Ar4, D0Ar2, D0.4 |
53 | MOV D1Ar1, D0.4 | 39 | MOV D1Ar1, D0.4 |
54 | MOV D0Ar2, D1RtP | 40 | MOV D0Ar2, D1RtP |