arm64: stacktrace: Factor out some common code into on_stack()

There are some common codes for stack checking, so factors it out into
the function on_stack().

No functional change.

Signed-off-by: Yunfeng Ye <yeyunfeng@huawei.com>
Link: https://lore.kernel.org/r/07b3b0e6-3f58-4fed-07ea-7d17b7508948@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
This commit is contained in:
Yunfeng Ye 2020-05-08 11:15:45 +08:00 • committed by Will Deacon
commit bd4298c72b
2 changed files with 16 additions and 52 deletions