]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: shut down to OBP correctly
authorLarry Bassel <larry.bassel@oracle.com>
Thu, 12 Jan 2017 16:29:49 +0000 (09:29 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 9 Mar 2017 03:30:12 +0000 (19:30 -0800)
commiteedab457423c356d4d0dde6b839a2815f1305500
treed68307a1f53b68e9684fd29d7c439846ee89d252
parent116582842126dbdf222efe29c2e4fc423c2fcd9e
sparc64: shut down to OBP correctly

Orabug: 23467092

The command "shutdown -h -H now" should shut the system down to the
OBP, however the machine was being powered off in the LDOM case.

In the LDOM case, the "reboot-command" variable must be set to
the string "noop" and then ldom_reboot() must be called.
This will make the OBP ignore the setting of "auto-boot?" after it
completes the reset. This causes the system to stop at the ok prompt.

Signed-off-by: Larry Bassel <larry.bassel@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/include/asm/ldc.h
arch/sparc/kernel/ds.c
arch/sparc/prom/misc_64.c