Page MenuHomeFreeBSD

LinuxKPI: implement cpumask_of()
ClosedPublic

Authored by bz on Oct 31 2022, 2:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 4, 10:06 PM
Unknown Object (File)
Fri, Nov 28, 4:26 PM
Unknown Object (File)
Tue, Nov 25, 1:08 AM
Unknown Object (File)
Thu, Nov 20, 2:31 AM
Unknown Object (File)
Tue, Nov 18, 8:51 AM
Unknown Object (File)
Sun, Nov 16, 5:51 AM
Unknown Object (File)
Wed, Nov 12, 1:24 PM
Unknown Object (File)
Nov 5 2025, 8:34 AM
Subscribers

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.Oct 31 2022, 2:39 PM

IMO this ought to have a brief comment somewhere explaining the pregenerated masks.

This revision is now accepted and ready to land.Oct 31 2022, 4:14 PM

Add a comment for when generating these 1-CPU masks.

This revision now requires review to proceed.Nov 7 2022, 1:13 PM
This revision is now accepted and ready to land.Nov 7 2022, 3:34 PM
This revision was automatically updated to reflect the committed changes.