question on autosuspend vs. system suspend
Hi,
is there any point during system suspend one can be sure that autosuspend mechanisms are deactivated?
Regards
Oliver
Quoted 4 lines · Oliver Neukum
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