LoongArch: Cleanup reset routines with new API
authorHuacai Chen <chenhuacai@loongson.cn>
Thu, 25 Aug 2022 11:34:59 +0000 (19:34 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 25 Aug 2022 11:34:59 +0000 (19:34 +0800)
commitda48b67cfb6b4f115ae652dd5995c56fe2a2cf9b
treebda06d1c7b6edaec4743e237c3836cdd2cbf22fe
parent84e762060147582912581fd99cb25f3559ec8c22
LoongArch: Cleanup reset routines with new API

Cleanup reset routines by using new do_kernel_power_off() instead of old
pm_power_off(), and then simplify the whole file (reset.c) organization
by inlining some functions. This cleanup also fix a poweroff error if EFI
runtime is disabled.

Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/reboot.h [deleted file]
arch/loongarch/kernel/reset.c