[linux-pm] PM vs. usermode helpers: request_firmware() must die

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 03 November 2004 16:22, Benjamin Herrenschmidt wrote:
> On Thu, 2004-11-04 at 01:22 +0100, Pavel Machek wrote:
> > [Hmm, and in_suspend() is probably better name, consistent with
> > in_atomic() and in_interrupt().]
> 
> Yah.

I posted a sketch of how to do subtree suspends a while back,
which had the nice side consequence that this would work:

  static inline int in_suspend(struct device *dev)
  {
	return !list_empty(&dev->power.entry);
  }

Actually, we should need only one function for in_suspend()
and in_resume().

I hope that nobody's assuming devices only suspend as part of
system sleep state transitions ... one device tree might be
suspending while another (or its parent!) is fully active...

- Dave


[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux