Skip to content

Commit

Permalink
mips: Use do_kernel_power_off()
Browse files Browse the repository at this point in the history
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: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
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>
  • Loading branch information
Dmitry Osipenko authored and Rafael J. Wysocki committed May 19, 2022
1 parent d3ad437 commit 2dfb34e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/mips/kernel/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ void machine_halt(void)

void machine_power_off(void)
{
if (pm_power_off)
pm_power_off();
do_kernel_power_off();

#ifdef CONFIG_SMP
preempt_disable();
Expand Down

0 comments on commit 2dfb34e

Please sign in to comment.