[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is suspend() function working?



On 11/04/2007 01:35 AM, Peter Teoh wrote:

In arch/x86/kerne/apm_32.c there is the suspend() function - question
is why immediately after calling save_processor_state() it will call
restore_processor_state()?

It won't -- the system enters suspend mode in the set_system_power_state() call that's inbetween and returning from that function (that is, from the APM BIOS function it ends up calling) means we've woken up again.


Rene.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ