From: Dmitry Osipenko Date: Mon, 9 May 2022 23:32:20 +0000 (+0300) Subject: arm64: Use do_kernel_power_off() X-Git-Tag: v6.1-rc5~1209^2^2~2^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c6499149ebdb2ea7dd3507bb2263e5848c94ad7;p=platform%2Fkernel%2Flinux-starfive.git arm64: Use do_kernel_power_off() Kernel now supports chained power-off handlers. Use do_kernel_power_off() that invokes chained power-off handlers. It also invokes legacy pm_power_off() for now, which will be removed once all drivers will be converted to the new sys-off API. Acked-by: Catalin Marinas Reviewed-by: Michał Mirosław Signed-off-by: Dmitry Osipenko Signed-off-by: Rafael J. Wysocki --- diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c index 7fa97df..26d1b0a 100644 --- a/arch/arm64/kernel/process.c +++ b/arch/arm64/kernel/process.c @@ -111,8 +111,7 @@ void machine_power_off(void) { local_irq_disable(); smp_send_stop(); - if (pm_power_off) - pm_power_off(); + do_kernel_power_off(); } /*