LoongArch: Get frame info in unwind_start() when regs is not available

[ Upstream commit 429a9671f2 ]

At unwind_start(), it is better to get its frame info here rather than
get them outside, even we don't have 'regs'. In this way we can simply
use unwind_{start, next_frame, done} outside.

Signed-off-by: Jinyang He <hejinyang@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Jinyang He 2023-01-17 11:42:16 +08:00 • committed by Greg Kroah-Hartman
commit efc1058831
3 changed files with 22 additions and 12 deletions