arm64: Move console stack display code to stacktrace.c
authorMark Brown <broonie@kernel.org>
Mon, 21 Sep 2020 12:23:41 +0000 (13:23 +0100)
committerWill Deacon <will@kernel.org>
Mon, 21 Sep 2020 18:43:03 +0000 (19:43 +0100)
commit9e0f085c2b33ebe13bcec53cbacce505fe78fde7
tree88f6f0415bc30583bb6270a6c5cba64d20421756
parent5fc57df2f6fdc18b9f9273f98318ff7919968c2c
arm64: Move console stack display code to stacktrace.c

Currently the code for displaying a stack trace on the console is located
in traps.c rather than stacktrace.c, using the unwinding code that is in
stacktrace.c. This can be confusing and make the code hard to find since
such output is often referred to as a stack trace which might mislead the
unwary. Due to this and since traps.c doesn't interact with this code
except for via the public interfaces move the code to stacktrace.c to
make it easier to find.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20200921122341.11280-1-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/stacktrace.c
arch/arm64/kernel/traps.c