[linux-pm] calling runtime PM from system PM methods
Alan Stern
stern at rowland.harvard.edu
Thu Jun 2 11:38:01 PDT 2011
On Thu, 2 Jun 2011, Kevin Hilman wrote:
> OK. I was trying to catch that by checking pm_runtime_suspended(), but
> now see that that cannot work in general.
>
> The problem I'm trying to solve is how (or whether) I can use runtime PM
> from the system PM methods, specifically in the case where runtime PM
> has been disabled from userspace (or pm_runtime_forbid() has been
> called.)
>
> In a nutshell, what I'm after is for any pm_runtime_forbid() calls to be
> cancelled during system PM, thus allowing pending runtime PM events to
> occur during system PM.
There are a few approaches that might do what you want. But I'd like
to hear Rafael's opinion before making any suggestions.
Alan Stern
More information about the linux-pm
mailing list