aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/kernel/stacktrace.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sh/kernel/stacktrace.c b/arch/sh/kernel/stacktrace.c
index 45b1adde3abe..a0f497bcbb4f 100644
--- a/arch/sh/kernel/stacktrace.c
+++ b/arch/sh/kernel/stacktrace.c
@@ -38,6 +38,9 @@ static void save_stack_address(void *data, unsigned long addr, int reliable)
38{ 38{
39 struct stack_trace *trace = data; 39 struct stack_trace *trace = data;
40 40
41 if (!reliable)
42 return;
43
41 if (trace->skip > 0) { 44 if (trace->skip > 0) {
42 trace->skip--; 45 trace->skip--;
43 return; 46 return;
@@ -67,6 +70,9 @@ save_stack_address_nosched(void *data, unsigned long addr, int reliable)
67{ 70{
68 struct stack_trace *trace = (struct stack_trace *)data; 71 struct stack_trace *trace = (struct stack_trace *)data;
69 72
73 if (!reliable)
74 return;
75
70 if (in_sched_functions(addr)) 76 if (in_sched_functions(addr))
71 return; 77 return;
72 78