HomeFreeBSD

LinuxKPI: implement cpumask_of()

Description

LinuxKPI: implement cpumask_of()

Add a static set of cpumasks for all (possible) cpus with only the one
indexed cpu enabled in each set.
This is needed for cpumask_of(_cpuid) which returns a cpumask (cpuset)
with only cpu _cpuid enabled and is used by one wireless driver at least.

MFC after: 3 days
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D37223

Details

Provenance
bzAuthored on Oct 31 2022, 2:33 PM
Reviewer
emaste
Differential Revision
D37223: LinuxKPI: implement cpumask_of()
Parents
rGdc9daa04fb68: tcp: allow packets to be marked as ECT1 instead of ECT0
Branches
Unknown
Tags
Unknown