[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>
This commit is contained in:

committed by
Paul Mackerras

parent
0e4aa9c200
commit
368a6ba5d1
@@ -24,6 +24,7 @@
|
||||
#define RTAS_RMOBUF_MAX (64 * 1024)
|
||||
|
||||
/* RTAS return status codes */
|
||||
#define RTAS_NOT_SUSPENDABLE -9004
|
||||
#define RTAS_BUSY -2 /* RTAS Busy */
|
||||
#define RTAS_EXTENDED_DELAY_MIN 9900
|
||||
#define RTAS_EXTENDED_DELAY_MAX 9905
|
||||
|
Reference in New Issue
Block a user