[linux-pm] Nested suspends; messages vs. states

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

 



[ Short replies, to prevent some messiness. ]

On Wed, 23 Mar 2005, Benjamin Herrenschmidt wrote:

> > > Note that rather than enter_state, I'd rather just have a function
> > > pointer enter_this_state in the driver state array ...
> >
> > Wouldn't that imply a different ->enter_state() method for each system
> > state?
>
> one enter state method for each driver state. If the driver has one
> enter state for each system state, then go for it.

Two things:

1) I meant just 1 ->enter_state() entry point for the core to call. It
won't call a different function depending on the state; it will leave it
up to the driver to determine what state to enter/what function to call.
Internally (or in its bus core), is where the array of enter_state()
methods would reside. Do you agree?

2) The system states are totally dependent on the platform. I don't see
how we could have a sane array that encapsulates every possible system
state. Thoughts?


	Pat

[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