]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit16bae1686a3bd9dd453887cbca6ca364bbe953e8
treebda06d1c7b6edaec4743e237c3836cdd2cbf22fe
parentfc0d70dabe46f8ca5e67601bf586cc99c1b928a9
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