HomeFreeBSD

apic: prevent divide by zero in CPU frequency init

Description

apic: prevent divide by zero in CPU frequency init

If a CPU for some reason returns 0 as CPU frequency, we currently panic
on the resulting divide by zero when trying to initialize the CPU(s) via
APIC. When this happens, we'll fallback to measuring the frequency
instead.

PR: 269767
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/664

Details

Provenance
freebsd_igalic.coAuthored on Feb 24 2023, 11:07 AM
impCommitted on Feb 25 2023, 4:47 PM
Parents
rG28111ddf9ee6: powerd.8: Provide a whole path to power_profile for clarity
Branches
Unknown
Tags
Unknown