Page MenuHomeFreeBSD

Use CPUID leaf 0x40000010 for local APIC freq
ClosedPublic

Authored by cperciva on Jan 14 2022, 6:32 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 28, 9:55 AM
Unknown Object (File)
Tue, Apr 28, 9:50 AM
Unknown Object (File)
Tue, Apr 28, 6:42 AM
Unknown Object (File)
Sat, Apr 25, 6:32 AM
Unknown Object (File)
Wed, Apr 22, 10:54 PM
Unknown Object (File)
Sun, Apr 12, 1:30 AM
Unknown Object (File)
Mon, Apr 6, 3:42 PM
Unknown Object (File)
Mar 19 2026, 1:35 PM
Subscribers

Details

Reviewers
markj
Summary

Some VM systems announce the frequency of the local APIC via the
CPUID leaf 0x40000010. Using this allows us to boot slightly
faster by avoiding the need for timer calibration.

Sponsored by: https://www.patreon.com/cperciva

Diff Detail

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

Event Timeline

sys/x86/x86/local_apic.c
1017

Can this multiplication overflow? I suspect value should be uint64_t too.

sys/x86/x86/local_apic.c
1017

Thanks, fixed!

This revision is now accepted and ready to land.Jan 14 2022, 11:27 PM

Committed. (I forgot to include the Differential Revision tag in the commit message.)