]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv: call pm_power_off from machine_halt / machine_power_off
authorChristoph Hellwig <hch@lst.de>
Mon, 15 Apr 2019 09:14:42 +0000 (11:14 +0200)
committerPalmer Dabbelt <palmer@sifive.com>
Thu, 25 Apr 2019 21:51:12 +0000 (14:51 -0700)
commitbf0102a0fdd9fa2b41c2646c4f96e91b678de89e
treeac4e34e4857396f804d7b9cca14ca8ce206e05d0
parentbed1378706637c0dd09c055480767dfcf6abe7db
riscv: call pm_power_off from machine_halt / machine_power_off

This way any override of pm_power_off also affects the halt path and
we don't need additional infrastructure for it.

Also remove the pm_power_off export - at least for now we don't have
any modular drivers overriding it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/reset.c