Author: trasz
Date: Sat Jul 18 10:53:56 2020
New Revision: 363302
URL: https://svnweb.freebsd.org/changeset/base/363302

Log:
  Fix bogomips calculation.  Previously it was off by half.  This was
  verified under VMWare Fusion, comparing to what's reported under CentOS,
  and by comparing numbers reported by linuxulator on T420 with a googled
  up Linux cpuinfo (https://lkml.org/lkml/2011/11/29/116).
  
  MFC after:    2 weeks
  Sponsored by: The FreeBSD Foundation
  Differential Revision:        https://reviews.freebsd.org/D20693

Modified:
  head/sys/compat/linprocfs/linprocfs.c

Modified: head/sys/compat/linprocfs/linprocfs.c
==============================================================================
--- head/sys/compat/linprocfs/linprocfs.c       Sat Jul 18 10:49:17 2020        
(r363301)
+++ head/sys/compat/linprocfs/linprocfs.c       Sat Jul 18 10:53:56 2020        
(r363302)
@@ -364,7 +364,7 @@ linprocfs_docpuinfo(PFS_FILL_ARGS)
 #else
                    "",
 #endif
-                   fqmhz, fqkhz,
+                   fqmhz * 2, fqkhz,
                    cpu_clflush_line_size, cpu_clflush_line_size,
                    cpu_maxphyaddr,
                    (cpu_maxphyaddr > 32) ? 48 : 0);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to