Page MenuHomeFreeBSD

Fix bogomips calculation
ClosedPublic

Authored by trasz on Jun 19 2019, 12:50 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 19 2024, 9:21 AM
Unknown Object (File)
Dec 23 2023, 8:11 PM
Unknown Object (File)
Dec 13 2023, 4:10 PM
Unknown Object (File)
Nov 8 2023, 6:23 AM
Unknown Object (File)
Oct 31 2023, 9:26 AM
Unknown Object (File)
Oct 7 2023, 5:19 AM
Unknown Object (File)
Sep 21 2023, 5:39 PM
Unknown Object (File)
Sep 19 2023, 11:29 AM
Subscribers

Details

Summary

Fix bogomips calculation. Previously it was off by half.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24929
Build 23654: arc lint + arc unit

Event Timeline

Would be good to put some reference to determining the appropriate bogomips value, either as a comment in the code if there's something reasonable you can link to, or in the commit message if you just found this case by observation (e.g., something like "on the same hardware I noticed that Linux's real bogomips value was twice that that we reported" if that's the case).

It was compared under VMWare Fusion - with the change the value matches what the actual CentOS reports.

Another observation: on my T420 it reports 2491.96, whereas a googled cpuinfo from a real T420 (https://lkml.org/lkml/2011/11/29/116) reports 5182.63.

IMO go ahead and commit, but add a comment referencing your empirical results above

This revision was not accepted when it landed; it landed in state Needs Review.Jul 18 2020, 10:54 AM
This revision was automatically updated to reflect the committed changes.