diff options
author | Christoph Hellwig <hch@lst.de> | 2007-05-08 03:23:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:14:58 -0400 |
commit | ab1b6f03a10ba1f5638188ab06bf46e33ac3a160 (patch) | |
tree | 2dc7ce01df5d51d81e250dd9cee1b7b04627466e /kernel/lockdep.c | |
parent | 7e4c3690b07f04b1942c39db358a5c8a72831daa (diff) |
simplify the stacktrace code
Simplify the stacktrace code:
- remove the unused task argument to save_stack_trace, it's always
current
- remove the all_contexts flag, it's alwasy 0
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Andi Kleen <ak@suse.de>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/lockdep.c')
-rw-r--r-- | kernel/lockdep.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/lockdep.c b/kernel/lockdep.c index 7065a687ac54..c1e308a080b8 100644 --- a/kernel/lockdep.c +++ b/kernel/lockdep.c | |||
@@ -257,9 +257,8 @@ static int save_trace(struct stack_trace *trace) | |||
257 | trace->entries = stack_trace + nr_stack_trace_entries; | 257 | trace->entries = stack_trace + nr_stack_trace_entries; |
258 | 258 | ||
259 | trace->skip = 3; | 259 | trace->skip = 3; |
260 | trace->all_contexts = 0; | ||
261 | 260 | ||
262 | save_stack_trace(trace, NULL); | 261 | save_stack_trace(trace); |
263 | 262 | ||
264 | trace->max_entries = trace->nr_entries; | 263 | trace->max_entries = trace->nr_entries; |
265 | 264 | ||