On Tue, Apr 19, 2005 at 02:15:30PM +0200, Nico Schottelius wrote:
> When I wrote schwanz3(*) for fun, I noticed /proc/cpuinfo
> varies very much on different architectures.
>
> Is it possible to make it look more identical (as far as the different
> archs allow it)?
>
> So that one at least can count the cpus on every system the same way.
>
> If so, who would the one I should contact and who would accept / verify
> a patch doing that?
If you change it now, how many tools would break?
Maybe if you can list what statistics you think should be common to all
systems, that could be presented in another file that is always the same
format on each architecture.
Certainly looking at arm and i386, other than the bogomips field there
is nothing in common between their cpuinfo contents. THey don't even
capitalize bogomips the same either.
I doubt this is really doable. If all you want is the number of CPUs
then something like sysconf(_SC_NPROCESSORS_CONF) should do.
Len Sorensen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]