Thread (1 message) 1 message, 1 author, 2007-07-17

Re: Hibernation considerations

flat view

From: Rafael J. Wysocki <hidden>
Date: 2007-07-17 21:38:34
Also in: lkml

On Tuesday, 17 July 2007 23:27, Jeremy Maitin-Shepard wrote:
david@lang.hm writes:

[snip]
quoted
quoted
How do you guarantee that no tasks are scheduled when you get back to the
hibernated kernel?
quoted
just don't schedule any userspace tasks. all you need to do is to execute the
ACPI sleep functions. you normally do that after stopping userspace
anyway.
What does "stopping userspace" mean?  You already said it does not mean
disabling interrupts.  But using the freezer is also not an option,
since the avoidance of that is the main reason for the kexec approach in
the first place.

[snip]
quoted
quoted
Well, not exactly.  If your battery runs out of power while you're suspended,
but you have the image saved, it's still better to restore from the image,
even
quoted
if something may not work correctly after the restore, than to risk a loss of
data.
quoted
if things don't work correctly you are still risking the loss of data, the user
just doesn't know it.
It should be possible on any system to do a hibernate followed by a
shutdown (and then resume properly, without any problems).  Thus, for
handling suspend to both, you resume as if the system had been shutdown,
rather than resuming as if the system came from S4.
Exactly.

Greetings,
Rafael


-- 
"Premature optimization is the root of all evil." - Donald Knuth
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help