OSDN Git Service

powerpc/powernv: Add explicit fast-reboot support
authorOliver O'Halloran <oohall@gmail.com>
Mon, 17 Feb 2020 02:48:33 +0000 (13:48 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 Mar 2020 11:44:27 +0000 (22:44 +1100)
commit672e480aa21023fc8e4b6ab8635d8898822b97e7
tree5ce69d329d73eb81f908c505b1e834067543c803
parent16985f2d25095899685952296f128a71f0aff05c
powerpc/powernv: Add explicit fast-reboot support

Add a way to manually invoke a fast-reboot rather than setting the NVRAM
flag. The idea is to allow userspace to invoke a fast-reboot using the
optional string argument to the reboot() system call, or using the xmon
zr command so we don't need to leave around a persistent changes on
a system to use the feature.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200217024833.30580-2-oohall@gmail.com
arch/powerpc/include/asm/opal-api.h
arch/powerpc/platforms/powernv/setup.c