diff options
author | Dmitry Osipenko <dmitry.osipenko@collabora.com> | 2022-06-06 18:56:40 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-06-07 19:42:31 +0200 |
commit | 2b8c612c6102f751e6e3e1bd425f64e9d3d3f638 (patch) | |
tree | 4aec7da25b81670ec25d70e1b102932b0348de07 /kernel/usermode_driver.c | |
parent | kernel/reboot: Use static handler for register_platform_power_off() (diff) | |
download | linux-2b8c612c6102f751e6e3e1bd425f64e9d3d3f638.tar.xz linux-2b8c612c6102f751e6e3e1bd425f64e9d3d3f638.zip |
kernel/reboot: Fix powering off using a non-syscall code paths
There are other methods of powering off machine than the reboot syscall.
Previously we missed to cover those methods and it created power-off
regression for some machines, like the PowerPC e500.
Fix this problem by moving the legacy sys-off handler registration to
the latest phase of power-off process and making the kernel_can_power_off()
check the legacy pm_power_off presence.
Tested-by: Michael Ellerman <mpe@ellerman.id.au> # ppce500
Reported-by: Michael Ellerman <mpe@ellerman.id.au> # ppce500
Fixes: da007f171fc9 ("kernel/reboot: Change registration order of legacy power-off handler")
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/usermode_driver.c')
0 files changed, 0 insertions, 0 deletions