Processor name
Dave Jones
davej at redhat.com
Fri Mar 2 12:16:51 PST 2007
On Fri, Mar 02, 2007 at 02:24:13PM -0500, David Zeuthen wrote:
> On Fri, 2007-03-02 at 01:48 +0000, Richard Hughes wrote:
> > With current HAL, my info.product for my processor is the following:
> >
> > "Genuine Intel(R) CPU T2300 @ 1.66GHz"
> >
> > This is exposed in gnome-system-monitor and should have the extra
> > spaces removed.
> >
> > Two things:
> >
> > 1) Is there a simple glib function to remove the double spaces in an
> > allocated string?
> > 2) Is this available in sysfs somewhere?
>
> Isn't the right answer to let the presentation layer fix up such things?
> Do we removing such whitespace anywhere else? I don't think so...
> Passing the 48 bytes passed from the CPUID instruction is probably what
> we still want to do on x86.
Not all x86's offer those cpuid levels, so doing this in hal would be
a really bad idea, as you'd need to duplicate all the hoop-jumping the
kernel does to provide a name in /proc/cpuinfo for those earlier CPUs.
> . Another point is that we get this stuff from /proc/acpi, yuck
ITYM /proc/cpuinfo ?
Dave
--
http://www.codemonkey.org.uk
More information about the hal
mailing list