Thread (71 messages) 71 messages, 14 authors, 2021-11-29

Re: [PATCH v2 15/45] nds32: Use do_kernel_power_off()

From: Greentime Hu <hidden>
Date: 2021-10-28 12:22:04
Also in: linux-acpi, linux-m68k, linux-mips, linux-omap, linux-pm, linux-riscv, linux-sh, linuxppc-dev, lkml, xen-devel

Dmitry Osipenko [off-list ref] 於 2021年10月28日 週四 上午5:18寫道:
quoted hunk ↗ jump to hunk
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 power-off API.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
---
 arch/nds32/kernel/process.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/nds32/kernel/process.c b/arch/nds32/kernel/process.c
index 49fab9e39cbf..0936dcd7db1b 100644
--- a/arch/nds32/kernel/process.c
+++ b/arch/nds32/kernel/process.c
@@ -54,8 +54,7 @@ EXPORT_SYMBOL(machine_halt);

 void machine_power_off(void)
 {
-       if (pm_power_off)
-               pm_power_off();
+       do_kernel_power_off();
 }

 EXPORT_SYMBOL(machine_power_off);
--
2.33.1
Loop in Alan and KC
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help