HomeFreeBSD

intrng: track counter allocation with a bitmap

Description

intrng: track counter allocation with a bitmap

Crucially, this allows releasing counters, and interrupt sources by
extension. Where before we were incrementing intrcnt_index with atomics,
now we protect the bitmap using the existing isrc_table_lock mutex.

Reviewed by: mmel
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D38437

Details

Provenance
mhorneAuthored on Feb 14 2023, 6:02 PM
Reviewer
mmel
Differential Revision
D38437: intrng: track counter allocation with a bitmap
Parents
rG82e846df5bc2: intrng: sort includes
Branches
Unknown
Tags
Unknown