arm64: stacktrace: Factor out some common code into on_stack()
authorYunfeng Ye <yeyunfeng@huawei.com>
Fri, 8 May 2020 03:15:45 +0000 (11:15 +0800)
committerWill Deacon <will@kernel.org>
Mon, 18 May 2020 17:04:22 +0000 (18:04 +0100)
commitbd4298c72b56d7faf0ee3671739f3a704a962d0f
tree674b0b0e1e51380d5a572cd13aef409c4bf7680c
parentb322c65f8ca37396cfd7d4d0ac2f7f2dc08fa9eb
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>
arch/arm64/include/asm/stacktrace.h
arch/arm64/kernel/sdei.c