[POWERPC] check firmware state before suspending
authorDave C Boutcher <boutcher@cs.umn.edu>
Tue, 13 Jun 2006 00:49:20 +0000 (19:49 -0500)
committerPaul Mackerras <paulus@samba.org>
Thu, 15 Jun 2006 09:31:27 +0000 (19:31 +1000)
commit368a6ba5d188552aea2a668301a259164c9f355e
treed22916e2870618b2b4ff26588df8f66a5928ac64
parent0e4aa9c2009187fff1c999fe0aaa134c1a84f48a
[POWERPC] check firmware state before suspending

Currently the kernel blindly halts all the processors and calls the
ibm,suspend-me rtas call.  If the firmware is not in the correct
state, we then re-start all the processors and return.  It is much
smarter to first check the firmware state, and only if it is waiting,
call the ibm,suspend-me call.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/rtas.c
include/asm-powerpc/hvcall.h
include/asm-powerpc/rtas.h