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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rafael J. Wysocki
Date: Wednesday, May 26, 2010 - 2:51 pm

On Wednesday 26 May 2010, Alan Stern wrote:

I still see an issue here.  Namely, if the power manager is in user space and
it's signaled to suspend, it has to ask the kernel to do that, presumably by
writing something to a sysfs file.  Then, if the kernel blocks the suspend, the
power manager waits until the block is released.  Now, it should go back and
check if user space still doesn't block suspend and if so, wait until the block
is released and start over.  With all suspend blockers in the kernel this
looping behavior is avoidable.


I agree.

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

Messages in current thread:
Re: [PATCH 1/8] PM: Opportunistic suspend support., Alan Stern, (Wed May 26, 6:59 am)
Re: [PATCH 1/8] PM: Opportunistic suspend support., Rafael J. Wysocki, (Wed May 26, 2:51 pm)