Re: [PATCH] CPU frequency display in /proc/cpuinfo

From: Dave Jones
Date: Mon Dec 05 2005 - 12:24:47 EST


On Mon, Dec 05, 2005 at 02:02:24PM +0100, Erik Mouw wrote:
> On Sun, Dec 04, 2005 at 08:16:11PM -0500, Dave Jones wrote:
> > I can't think of a single valid reason why a program would want
> > to know the MHz rating of a CPU. Given that it's a) approximate,
> > b) subject to change due to power management, c) completely nonsensical
> > across CPU vendors, and d) only one of many variables regarding CPU
> > performance, any program that bases any decision on the values found
> > by parsing that field of /proc/cpuinfo is utterly broken beyond belief.
>
> If you want a userspace governor to change the CPU speed, you need to
> export the value to userland.

We have sysfs files for that.

Dave

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