* question on autosuspend vs. system suspend
@ 2016-01-02 15:09 Oliver Neukum
2016-01-02 17:26 ` Alan Stern
0 siblings, 1 reply; 2+ messages in thread
From: Oliver Neukum @ 2016-01-02 15:09 UTC (permalink / raw)
To: linux-pm
Hi,
is there any point during system suspend one can
be sure that autosuspend mechanisms are deactivated?
Regards
Oliver
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: question on autosuspend vs. system suspend
2016-01-02 15:09 question on autosuspend vs. system suspend Oliver Neukum
@ 2016-01-02 17:26 ` Alan Stern
0 siblings, 0 replies; 2+ messages in thread
From: Alan Stern @ 2016-01-02 17:26 UTC (permalink / raw)
To: Oliver Neukum; +Cc: linux-pm
On Sat, 2 Jan 2016, Oliver Neukum wrote:
> Hi,
>
> is there any point during system suspend one can
> be sure that autosuspend mechanisms are deactivated?
There isn't any "autosuspend mechanism" really; autosuspend is just one
part of the runtime PM facility.
Thus, autosuspend is implemented using a timer and the PM work queue.
The work queue has the WQ_FREEZABLE flag set, so it won't run at all
during system suspend and resume. This means there won't be any
delayed autosuspends at those times.
On the other hand, if the autosusped delay has already elapsed when
pm_runtime_autosuspend() is called then it will bypass the work queue
and directly start a runtime suspend. So there may be an undelayed
autosuspend during system suspend.
Alan Stern
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-02 17:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-02 15:09 question on autosuspend vs. system suspend Oliver Neukum
2016-01-02 17:26 ` Alan Stern
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.