powerpc/nvram: Don't overwrite oops/panic report on normal shutdown
authorJim Keniston <jkenisto@us.ibm.com>
Fri, 25 Mar 2011 12:47:58 +0000 (12:47 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 29 Mar 2011 23:36:23 +0000 (10:36 +1100)
commit15d260b36facc1aa769fb39b0efc41f4c8c44729
treed78ebb09c4b8b49868cf575a6a7166364906094d
parentff56535d294245b75fd8f79633b935a3b85993c8
powerpc/nvram: Don't overwrite oops/panic report on normal shutdown

For normal halt, reboot, and poweroff events, refrain from overwriting
the lnx,oops-log partition.  Also, don't save the dmesg buffer on an
emergency-restart event if we've already saved it earlier in panic().

Signed-off-by: Jim Keniston <jkenisto@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/nvram.c