Thread (28 messages) 28 messages, 2 authors, 2021-11-08

Re: [PATCH v3 21/25] m68k: Switch to new sys-off handler API

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2021-11-08 07:47:35
Also in: linux-acpi, linux-m68k, linux-mips, linux-riscv, linux-sh, linux-tegra, linuxppc-dev, lkml, xen-devel

On Mon, Nov 8, 2021 at 1:48 AM Dmitry Osipenko [off-list ref] wrote:
Kernel now supports chained power-off handlers. Use
register_power_off_handler() that registers power-off handlers and
do_kernel_power_off() that invokes chained power-off handlers. Legacy
pm_power_off() will be removed once all drivers will be converted to
the new power-off API.

Normally arch code should adopt only the do_kernel_power_off() at first,
but m68k is a special case because it uses pm_power_off() "inside out",
i.e. pm_power_off() invokes machine_power_off() [in fact it does nothing],
while it's machine_power_off() that should invoke the pm_power_off(), and
thus, we can't convert platforms to the new API separately. There are only
two platforms changed here, so it's not a big deal.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help