Thread (1 message) 1 message, 1 author, 2009-07-16

Re: [PATCH] [suspend] pci_raw_set_power_state: replace msleep by udelay in resuming procedure

From: Alan Stern <stern@rowland.harvard.edu>
Date: 2009-07-16 17:02:53

On Thu, 16 Jul 2009, Wu Zhangjin wrote:
we can not call msleep() when resuming from STR/Standby: if the
current_state of the pci device is PCI_D3hot, means we are in the
procedure of resuming, in this procedure, we can not re-schedule,
otherwise, there will be a deadlock.
I don't understand.

First of all, why does current_state == PCI_D3hot mean the system is
resuming from sleep?  Isn't it possible that the PCI device is going
through a runtime resume?

Secondly, why will scheduling during a resume cause a deadlock?

Alan Stern
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help