lkml.org 
[lkml]   [1999]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subject/proc/cpuinfo verbiage differ unnecessarily between ports...
Ronald Cole writes:
>Michael K. Johnson writes:
>>The problem you report will be fixed in the procps-2.0.3 release, which
>>I expect to make as soon as I catch up reading my procps-bugs email. :-)
>
>It's bug #4554 and contains my stab at a patch. Calculating the
>number of processors, as I did, may be Intel specific, though. I
>think I saw a post on the kernel list that had the string "cpu" where
>"processor" should be in /proc/cpuinfo. If that's the case, you'll
>have to find a portable way to count the number of cpus.

Yes, indeed! I just found a spare moment and checked get_cpuinfo() in
arch/i386/kernel/setup.c and arch/sparc64/kernel/setup.c and my memory
didn't fail me, unfortunately.

I can't think of any good argument for keeping "processor" for the
i386 and "cpu" for the sparc64. Someone should probably fix all the
different ports so that the verbiage is consistent...
But, there's probably a better, more portable, way to calculate the
number of processors for ps.

--
Forte International, P.O. Box 1412, Ridgecrest, CA 93556-1412
Ronald Cole <ronald@forte-intl.com> Phone: (760) 499-9142
President, CEO Fax: (760) 499-9152
My PGP fingerprint: 15 6E C7 91 5F AF 17 C4 24 93 CB 6B EB 38 B5 E5

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

\
 
 \ /
  Last update: 2005-03-22 13:53    [from the cache]
©2003-2011 Jasper Spaans