Re: [RFC] dynamic device power management proposal

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

 



Hi!

> > Heh, if mod_timer is bad idea, we'll fix mod_timer. Anyway, if you use
> > timestamp, you'll have to add polling, and that means overhead even
> > when idle.
> No, we don't need poll the timestamp frequently (maybe 1 minute or 5
> minute one time depends on your requirement)

Hmm, so instead of powering down soundcard 5 seconds after its last
use, we'll power it down 5 _minutes_ after that?

> > Anyway, we do not have to decide that at this point.
> > 
> > > > We can talk about generic device attribute "powerdown_timeout" in
> > > > sysfs... but I'd prefer few more drivers that do powersave before
> > we
> > > > do that.
> > > Using this you will have a timer in the driver, and the timer's
> > callback
> > > will suspend the device. This approach has some issues. 1. it's
> > better
> > > driver doesn't handle device dependence. This approach requires
> > driver
> > > handle dependence.
> > 
> > Why not?
> This will make driver complex. Driver should be as simple as possible.

You are free to provide helpers. Of course drivers will get more
complex with pm, but that's unavoidable.

								Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm


[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