diff options
author | David S. Miller <davem@davemloft.net> | 2008-08-13 20:17:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-08-13 20:20:04 -0400 |
commit | 6f63e781eaf6a741fc65f773017154b20ed4ce3b (patch) | |
tree | a7ab148968539b4543162c233f26b46ef95ae306 /arch/sparc64/kernel/stacktrace.c | |
parent | 4f70f7a91bffdcc39f088748dc678953eb9a3fbd (diff) |
sparc64: Handle stack trace attempts before irqstacks are setup.
Things like lockdep can try to do stack backtraces before
the irqstack blocks have been setup. So don't try to match
their ranges so early on.
Also, remove unused variable in save_stack_trace().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/stacktrace.c')
-rw-r--r-- | arch/sparc64/kernel/stacktrace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/stacktrace.c b/arch/sparc64/kernel/stacktrace.c index 237e7f8a40ac..4e21d4a57d3b 100644 --- a/arch/sparc64/kernel/stacktrace.c +++ b/arch/sparc64/kernel/stacktrace.c | |||
@@ -9,8 +9,8 @@ | |||
9 | 9 | ||
10 | void save_stack_trace(struct stack_trace *trace) | 10 | void save_stack_trace(struct stack_trace *trace) |
11 | { | 11 | { |
12 | unsigned long ksp, fp, thread_base; | ||
13 | struct thread_info *tp = task_thread_info(current); | 12 | struct thread_info *tp = task_thread_info(current); |
13 | unsigned long ksp, fp; | ||
14 | 14 | ||
15 | stack_trace_flush(); | 15 | stack_trace_flush(); |
16 | 16 | ||
@@ -20,7 +20,6 @@ void save_stack_trace(struct stack_trace *trace) | |||
20 | ); | 20 | ); |
21 | 21 | ||
22 | fp = ksp + STACK_BIAS; | 22 | fp = ksp + STACK_BIAS; |
23 | thread_base = (unsigned long) tp; | ||
24 | do { | 23 | do { |
25 | struct sparc_stackf *sf; | 24 | struct sparc_stackf *sf; |
26 | struct pt_regs *regs; | 25 | struct pt_regs *regs; |