]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commita9e139adbd8adcbbbe6d945b0a1b6a74f99ccd4b
treed22916e2870618b2b4ff26588df8f66a5928ac64
parent5c884b47ed8501fd8c136220493a7fc2983d066e
[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