On 10/15/2012 12:14 PM, Mike Frysinger wrote:
> On Monday 08 October 2012 03:00:54 [email protected] wrote:
>>   cpus=`cat /proc/cpuinfo | egrep "^processor.*:" | wc -l`
>> +
>> +# The Non-SMP ARM Platform could not find the "processor" from the
>> "cpuinfo".
> pass -i to grep instead
> -mike
Hi Mike,

    If used the "-i" option to find the cpu number, it would get error 
cpu numbers in the ARM SMP platform.

Thanks,
Guojian Zhou

    The ST spear 1340 double cores CPU information such as:
==================================================================
root@spear1340:~# cat /proc/cpuinfo
Processor    : ARMv7 Processor rev 1 (v7l)
processor    : 0
BogoMIPS    : 996.14

processor    : 1
BogoMIPS    : 996.14

Features    : swp half thumb fastmult vfp edsp vfpv3 vfpv3d16 tls
CPU implementer    : 0x41
CPU architecture: 7
CPU variant    : 0x2
CPU part    : 0xc09
CPU revision    : 1

Hardware    : ST-SPEAR1340-EVB
Revision    : 0000
Serial        : 0000000000000000
root@spear1340:~#
root@spear1340:~# cat /proc/cpuinfo | grep -i "processor"
Processor    : ARMv7 Processor rev 1 (v7l)
processor    : 0
processor    : 1
root@spear1340:~# cat /proc/cpuinfo | grep -i "processor" | wc -l
3
root@spear1340:~#


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to