On Wed, Aug 15, 2012 at 01:05:38PM +0200, Peter Zijlstra wrote:

> Yay, ideally we'd also provide a 3rd option: auto, which simply switches
> between the two based on AC/BAT, UPS status and simple things like that.

Please, really, don't do that. Pushing power policy decisions into 
multiple bits of the stack makes things much more awkward, especially 
when the criteria you're describing are about the least interesting 
reasons for switching these states. They're most relevant on 
multi-socket systems, and the overwhelming power concern there is 
rack-level overcommit or cooling. You're going to need an external 
policy agent to handle the majority of cases people actually care about.

-- 
Matthew Garrett | mj...@srcf.ucam.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to