[PATCH] cpuinfo support for Intel core2
Gert Vervoort <[email protected]> Sat, 29 Aug 2009 16:44:33 +0200
| Newsgroups | gmane.comp.video.mjpeg.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, Attached a patch for cpuinfo.sh which detects the Intel core2 processor. Tested on a Q9400. Gert ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Mjpeg-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mjpeg-developer
mjpeg_core2.diff
(text/x-patch, 541 B)
--- cpuinfo.sh.orig 2009-08-29 16:32:09.869032017 +0200
+++ cpuinfo.sh 2009-08-29 16:32:49.418455606 +0200
@@ -165,7 +165,9 @@
fi
;;
6) iproc=686
- if test "$pmodel" -ge 15; then
+ if test "$pmodel" -ge 23; then
+ proc=core2
+ elif test "$pmodel" -ge 15; then
proc=nocona
elif test "$pmodel" -ge 13; then
proc=pentium-m