lkml.org 
[lkml]   [2005]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] CPU frequency display in /proc/cpuinfo
On Tue, Dec 06, 2005 at 12:13:49PM +0100, Erik Mouw wrote:
> On Mon, Dec 05, 2005 at 12:25:13PM -0500, Dave Jones wrote:
> > On Mon, Dec 05, 2005 at 02:02:24PM +0100, Erik Mouw wrote:
> > > 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.
>
> Earlier in this thread you said (I should have quoted that, my fault):
>
> Adding any other interface to obtain this value is equally as broken.
>
> So I'm confused, sysfs one of the "any other interfaces"...

userspace governors need to know the available frequencies to scale to,
which they obtain from sysfs. In addition, we maintain an index as to
which of those is currently chosen. However, programs should not rely
on this to be a "how fast is my CPU" status, as it's totally meaningless.
It's there purely for humans to see "Yes, X < Y, so I'm going at the
lower of the frequencies my CPU can do", not for programs to calculate
delays loops and such.

Dave


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

\
 
 \ /
  Last update: 2005-12-06 17:59    [W:0.109 / U:0.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site