mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Cc: Paul Mundt <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: Martin Schwidefsky <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Akinobu Mita <[email protected]> Acked-by: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
7e4c3690b0
commit
ab1b6f03a1
8 changed files with 28 additions and 61 deletions
|
|
@ -257,9 +257,8 @@ static int save_trace(struct stack_trace *trace)
|
|||
trace->entries = stack_trace + nr_stack_trace_entries;
|
||||
|
||||
trace->skip = 3;
|
||||
trace->all_contexts = 0;
|
||||
|
||||
save_stack_trace(trace, NULL);
|
||||
save_stack_trace(trace);
|
||||
|
||||
trace->max_entries = trace->nr_entries;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue