[Mplayer-users] Processor detection in configure on SMP systems
Frank W. Samuelson
frank at merrill-samuelson.com
Fri Jul 13 07:33:38 CEST 2001
> Processor detection on Linux SMP systems does not work: all the entries
> in /proc/cpuinfo are duplicated for each cpu. So all the values end up
> two times in the variables like $pvendor, ... in the configure script.
I noticed this too. It is quickly fixed with a `head -1` at the
end of all the processor definitions:
pname=`$_cpuinfo | grep 'model name' | cut -d ':' -f 2|head -1`
pparam=`$_cpuinfo | grep 'features' | cut -d ':' -f 2|head -1`
if [ -z "$pparam" ]; then
pparam=`$_cpuinfo | grep 'flags' | cut -d ':' -f 2|head -1`
fi
pvendor=`$_cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2|head -1`
pfamily=`$_cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2|head -1`
pmodel=`$_cpuinfo | grep -v 'model name' | grep 'model' | cut -d ':' -f 2 | cut -d ' ' -f 2|head -1`
pstepping=`$_cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2|head -1`
_______________________________________________
Mplayer-users mailing list
Mplayer-users at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-users
More information about the MPlayer-users
mailing list