Dave Jones wrote: >On Wed, Dec 13, 2006 at 02:50:12PM -0800, Matthew Locke wrote: > > > > >>> I'd find that it's used on N770, as a good way to kick in low > > >>> voltage > > >>> operation modes. > > >> > > >> Except that cpufreq doesn't really support voltage changes > > > > > > The majority of cpufreq drivers in the tree right now support > > > voltage scaling just fine. > > > > Ok, let's reword my sentence. The cpufreq interface does not support > > voltage as a parameter > >Please explain why this is useful at all. >Under what circumstance is "Set the CPU voltage to 1.2V" a useful thing >for a user, sysadmin, or application to do ? > > Voltage scaling is a well known technique to reduce power consumption, try google search "Dynamic voltage scaling" if you are intrested in it. I agree, in most cases we don't need to scale CPU voltage and frequency independently since CPU frequency usually coupled with appropriate voltage to set. But some CPU's permit to choose frequency value for a given voltage or vice versa, and it makes sense to get a mechanism to control both voltage and frequency in this case. Some platforms, Intel Mainstone for example, have external s/w-controlled voltage requlators, that allow to change CPU core voltage in pretty wide range. Also, CPU is not the only power consumer in the system, you may need to scale voltage for other devices to get a best perfomance/power trade off. And here is an obvious limitation of cpufreq since it takes care only about CPU. Regards, Dmitry >The voltage something runs at is utterly irrelevant to all the above. >Given it's inherently tied to the speed a chip runs at, which makes >a lot more sense for all the above scenarios to change, we export that instead. > >AFAICS, exposing voltages to userspace would be completely pointless. > > Dave > > >