Andriy Gapon 33c70d417e acpi: do not run resume/backout code when entering S0/S5 states
This change adds (possibly redundant) early check for invalid
state input parameter (including S0). Handling of S5 request
is reduced to simply calling shutdown_nice(). As a result
control flow of acpi_EnterSleepState is somewhat simplified
and resume/backout half of the function is not executed
for S5 (soft poweroff) request and invalid state requests.

Note: it seems that shutdown_nice may act as nop when initproc
is already initialized (to grab pid of 1), but init process is in
"pre-natal" state.

Tested by:	Fabian Keil <fk@fabiankeil.de>
Reviewed by:	njl, jkim
Approved by:	rpaulo
2009-04-28 11:56:54 +00:00
..
2009-02-04 20:39:45 +00:00
2009-04-27 22:54:30 +00:00
2009-04-27 23:43:28 +00:00
2009-04-24 17:28:12 +00:00
2009-04-11 04:30:38 +00:00
2009-04-14 20:51:58 +00:00
2009-02-05 19:37:49 +00:00
2009-03-25 06:27:56 +00:00
2009-04-14 11:23:09 +00:00
2009-04-09 19:11:08 +00:00
2009-04-08 20:52:30 +00:00
2009-03-25 07:05:23 +00:00
2008-12-20 00:04:04 +00:00
2008-11-19 21:07:33 +00:00
2009-04-23 19:29:45 +00:00
2008-11-26 13:44:11 +00:00
2009-04-10 04:08:34 +00:00
2009-02-05 19:36:14 +00:00
2009-02-05 19:37:49 +00:00
2009-04-20 13:15:25 +00:00
2009-04-09 18:22:51 +00:00
2009-02-10 23:17:20 +00:00
2009-02-17 16:02:45 +00:00
2009-02-10 23:17:20 +00:00
2009-04-01 17:06:28 +00:00