Page MenuHomeFreeBSD

LinuxKPI: implement cpumask_of()
ClosedPublic

Authored by bz on Oct 31 2022, 2:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 28, 9:52 AM
Unknown Object (File)
Thu, Oct 17, 8:35 PM
Unknown Object (File)
Oct 1 2024, 4:48 PM
Unknown Object (File)
Sep 25 2024, 8:31 PM
Unknown Object (File)
Sep 25 2024, 12:36 PM
Unknown Object (File)
Sep 19 2024, 6:57 PM
Unknown Object (File)
Sep 19 2024, 6:18 AM
Unknown Object (File)
Sep 13 2024, 6:37 PM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 48207
Build 45094: arc lint + arc unit

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.