|
[oprof-cvs] CVS: oprofile/libutil op_cpufreq.c,1.5,1.6
From: Maynard Johnson <maynardj@us...> - 2009-11-25 20:35
|
Update of /cvsroot/oprofile/oprofile/libutil
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv25716/libutil
Modified Files:
op_cpufreq.c
Log Message:
Add support for ICT loongson2
Index: op_cpufreq.c
===================================================================
RCS file: /cvsroot/oprofile/oprofile/libutil/op_cpufreq.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -d -r1.5 -r1.6
--- op_cpufreq.c 4 Nov 2003 04:26:45 -0000 1.5
+++ op_cpufreq.c 25 Nov 2009 20:35:20 -0000 1.6
@@ -51,6 +51,11 @@ double op_cpu_frequency(void)
fval = uval / 1E6;
break;
}
+ /* mips including loongson2 */
+ if (sscanf(line, "BogoMIPS : %lu", &uval) == 1) {
+ fval = uval * 3 / 2;
+ break;
+ }
/* s390 doesn't provide cpu freq, checked up to 2.6-test4 */
free(line);
|
| Thread | Author | Date |
|---|---|---|
| [oprof-cvs] CVS: oprofile/libutil op_cpufreq.c,1.5,1.6 | Maynard Johnson <maynardj@us...> |