HomeFreeBSD

intrng: switch from MAXCPU to mp_ncpus

Description

intrng: switch from MAXCPU to mp_ncpus

MAXCPU could be on the large side, while the hardware may not have
many processors at all. As such only allocate counters for processors
which actually exist, rather than always allocating for the maximum
potentially allowed number.

Reviewed by: markj, emaste
Differential Revision: https://reviews.freebsd.org/D41462

Details

Provenance
ehem_freebsd_m5p.comAuthored on Sep 26 2023, 5:06 PM
emasteCommitted on Sep 27 2023, 4:19 PM
Reviewer
markj
Differential Revision
D41462: intrng: switch from MAXCPU to mp_ncpus
Parents
rG0fcececbac98: nvi: import version 2.2.1
Branches
Unknown
Tags
Unknown