Skip to content

Commit 0c64991

Browse files
digetxrafaeljw
authored andcommitted
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 <catalin.marinas@arm.com> Reviewed-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 6b22c73 commit 0c64991

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

arch/arm64/kernel/process.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ void machine_power_off(void)
111111
{
112112
local_irq_disable();
113113
smp_send_stop();
114-
if (pm_power_off)
115-
pm_power_off();
114+
do_kernel_power_off();
116115
}
117116

118117
/*

0 commit comments

Comments
 (0)