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

(cherry picked from commit 499171a98c8813e4dc6e085461d5c47750efa555)

Details

Provenance
freebsd_igalic.coAuthored on Feb 28 2023, 2:58 AM
impCommitted on Feb 28 2023, 2:58 AM
Parents
rG3464fc5f2a33: stand: fix build userboot without zfs
Branches
Unknown
Tags
Unknown