diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2020-07-18 10:53:56 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2020-07-18 10:53:56 +0000 |
commit | 7ce051e799154623fe1fce2e5004f3fb0b92acaa (patch) | |
tree | 27c9276a01d78e944493fca04d629a44e2be9175 /sys/compat/linprocfs/linprocfs.c | |
parent | 8ba7dddd6f30c9fedfcafd54401ecc7637489b23 (diff) |
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
Notes
Notes:
svn path=/head/; revision=363302
Diffstat (limited to 'sys/compat/linprocfs/linprocfs.c')
-rw-r--r-- | sys/compat/linprocfs/linprocfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c index b9ef6be31586..e36914732f8d 100644 --- a/sys/compat/linprocfs/linprocfs.c +++ b/sys/compat/linprocfs/linprocfs.c @@ -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); |