/proc/cpuinfo output differs from Linux
Diego Biurrun
diego@biurrun.de
Sat Apr 19 00:55:00 GMT 2003
Hello!
I am an MPlayer developer and was wondering why our configure script was
suddenly failing to detect my K6-III CPU. Then I noticed that Cygwin
/proc/cpuinfo formatting is not the same as in Linux.
Cygwin:
$ cat /proc/cpuinfo
vendor id : AuthenticAMD
Linux:
lea:~$ cat /proc/cpuinfo
vendor_id : GenuineIntel
Cygwin outputs "vendor id" (with a blank), while Linux uses "vendor_id"
with an underscore. We use this information to identify processors and
set up optimizations accordingly.
I grepped through the Cygwin sources for "vendor id" and made a small
patch. It is not tested but trivial, so I expect it to be fully correct.
Regards
Diego Biurrun
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: changelog
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20030419/fc7f6e1e/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vendor_id.patch
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20030419/fc7f6e1e/attachment-0001.ksh>
More information about the Cygwin-patches
mailing list