Re: [PATCH 1/8] PM: Opportunistic suspend support.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Stern
Date: Tuesday, May 25, 2010 - 11:35 am

On Tue, 25 May 2010, Dmitry Torokhov wrote:


I think that could be made to work.  And it might remove the need for 
the userspace suspend-blocker API, which would be an advantage.  It 
could even remove the need for the opportunistic-suspend workqueue -- 
opportunistic suspends would be initiated by the "suspend manager" 
process instead of by the kernel.

However you still have the issue of modifying the kernel drivers to 
disallow opportunistic suspend if their queues are non-empty.  Doing 
that is more or less equivalent to implementing kernel-level suspend 
blockers.  (The suspend blocker approach is slightly more efficient, 
because it will prevent a suspend from starting if a queue is 
non-empty, instead of allowing the suspend to start and then aborting 
it partway through.)

Maybe I'm missing something here...  No doubt someone will point it out 
if I am.

Alan Stern

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/8] PM: Opportunistic suspend support., Alan Stern, (Tue May 25, 11:35 am)
Re: [PATCH 1/8] PM: Opportunistic suspend support., Dmitry Torokhov, (Tue May 25, 11:47 am)
Re: [PATCH 1/8] PM: Opportunistic suspend support., Arve Hjønnevåg, (Tue May 25, 3:23 pm)
Re: [PATCH 1/8] PM: Opportunistic suspend support., Dmitry Torokhov, (Tue May 25, 3:32 pm)
Re: [PATCH 1/8] PM: Opportunistic suspend support., Arve Hjønnevåg, (Tue May 25, 3:37 pm)
Re: [PATCH 1/8] PM: Opportunistic suspend support., Dmitry Torokhov, (Tue May 25, 3:55 pm)
Re: [PATCH 1/8] PM: Opportunistic suspend support., Kevin Hilman, (Tue May 25, 3:59 pm)
Re: [PATCH 1/8] PM: Opportunistic suspend support., Arve Hjønnevåg, (Tue May 25, 4:13 pm)
Re: [PATCH 1/8] PM: Opportunistic suspend support., Dmitry Torokhov, (Tue May 25, 4:26 pm)