aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc
diff options
context:
space:
mode:
Diffstat (limited to 'arch/parisc')
-rw-r--r--arch/parisc/kernel/entry.S2
-rw-r--r--arch/parisc/kernel/ftrace.c7
2 files changed, 6 insertions, 3 deletions
diff --git a/arch/parisc/kernel/entry.S b/arch/parisc/kernel/entry.S
index 39127d3e70e5..2b2b0df67be5 100644
--- a/arch/parisc/kernel/entry.S
+++ b/arch/parisc/kernel/entry.S
@@ -667,7 +667,7 @@
667 * boundary 667 * boundary
668 */ 668 */
669 669
670 .text 670 .section .text.hot
671 .align 2048 671 .align 2048
672 672
673ENTRY(fault_vector_20) 673ENTRY(fault_vector_20)
diff --git a/arch/parisc/kernel/ftrace.c b/arch/parisc/kernel/ftrace.c
index b13f9ec6f294..a828a0adf52c 100644
--- a/arch/parisc/kernel/ftrace.c
+++ b/arch/parisc/kernel/ftrace.c
@@ -18,12 +18,15 @@
18#include <asm/ftrace.h> 18#include <asm/ftrace.h>
19 19
20 20
21#define __hot __attribute__ ((__section__ (".text.hot")))
22
21#ifdef CONFIG_FUNCTION_GRAPH_TRACER 23#ifdef CONFIG_FUNCTION_GRAPH_TRACER
22/* 24/*
23 * Hook the return address and push it in the stack of return addrs 25 * Hook the return address and push it in the stack of return addrs
24 * in current thread info. 26 * in current thread info.
25 */ 27 */
26static void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr) 28static void __hot prepare_ftrace_return(unsigned long *parent,
29 unsigned long self_addr)
27{ 30{
28 unsigned long old; 31 unsigned long old;
29 struct ftrace_graph_ent trace; 32 struct ftrace_graph_ent trace;
@@ -53,7 +56,7 @@ static void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr
53} 56}
54#endif /* CONFIG_FUNCTION_GRAPH_TRACER */ 57#endif /* CONFIG_FUNCTION_GRAPH_TRACER */
55 58
56void notrace ftrace_function_trampoline(unsigned long parent, 59void notrace __hot ftrace_function_trampoline(unsigned long parent,
57 unsigned long self_addr, 60 unsigned long self_addr,
58 unsigned long org_sp_gr3) 61 unsigned long org_sp_gr3)
59{ 62{