lkml.org 
[lkml]   [2012]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH]: In kernel hibernation, suspend to both
On 05/15/2012 05:29 AM, Bojan Smojver wrote:

> On Mon, 2012-05-14 at 21:47 +1000, Bojan Smojver wrote:
>> No. That hangs my box.
>>
>> This triggers a bug in workqueues code (essentially the same as the
>> previous patch, except for sys_sync() not being done):
>
> Alan/Srivatsa,
>
> Coming back to the explanation of how this whole thing works, it would
> seem that at the point of image writing all devices are fully functional
> (not just some, as I mistakenly believed). However, the processes are
> supposed to be already frozen, right? Calling suspend_prepare(), which
> will essentially try to freeze the processes and kernel threads, seems
> like the wrong thing to do.
>
> Did you guys mean that we should be calling
> pm_notifier_call_chain(PM_SUSPEND_PREPARE) only here?
>


Exactly! And also arrange for the corresponding PM_POST_SUSPEND notification
to happen at the end of suspend-to-ram stage...

Regards,
Srivatsa S. Bhat



\
 
 \ /
  Last update: 2012-05-15 20:22    [W:1.562 / U:0.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site