powerpc/pseries: Call ibm,os-term if the ibm,extended-os-term is present
authorAnton Blanchard <anton@samba.org>
Thu, 18 Feb 2010 12:11:51 +0000 (12:11 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 7 Apr 2010 08:00:48 +0000 (18:00 +1000)
commite9bbc8cde0e3c33b42ddbe1b02108cb5c97275eb
tree3aa22b3930273bdae0647ba254d361175e245f28
parent27f10907b7cca57df5e2a9c94c14354dd1b7879d
powerpc/pseries: Call ibm,os-term if the ibm,extended-os-term is present

We have had issues in the past with ibm,os-term initiating shutdown of a
partition. This is confusing to the user, especially if panic_timeout is
non zero.

The temporary fix was to avoid calling ibm,os-term if a panic_timeout was set
and since we set it on every boot we basically never call ibm,os-term.

An extended version of ibm,os-term has since been implemented which gives us
the behaviour we want:

  "When the platform supports extended ibm,os-term behavior, the return to the
  RTAS will always occur unless there is a kernel assisted dump active as
  initiated by an ibm,configure-kernel-dump call."

This patch checks for the ibm,extended-os-term property and calls ibm,os-term
if it exists.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/rtas.c