]> git.baikalelectronics.ru Git - kernel.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)
commit061d18afb198af6de3aee64a66c35321040d5f6b
treeac4e34e4857396f804d7b9cca14ca8ce206e05d0
parent97cdd63c0f3a32b7c403a81d2b89270088d825e3
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