Page MenuHomeFreeBSD

Use the cpuset API more consistently.
ClosedPublic

Authored by jhb on May 8 2015, 8:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 14, 1:30 PM
Unknown Object (File)
Dec 23 2023, 12:31 AM
Unknown Object (File)
Nov 30 2023, 7:03 AM
Unknown Object (File)
Nov 9 2023, 8:18 AM
Unknown Object (File)
Nov 8 2023, 5:40 AM
Unknown Object (File)
Nov 7 2023, 7:45 PM
Unknown Object (File)
Nov 7 2023, 8:15 AM
Unknown Object (File)
Nov 7 2023, 6:00 AM
Subscribers

Details

Summary

Use the cpuset API more consistently:

  • Fetch the root set from cpuset_getaffinity() instead of assuming all CPUs from 0 to hw.ncpu are the root set.
  • Use CPU_SETSIZE and CPU_FFS.
  • The original notion of halted CPUs the manpage and code refers to is gone. Use the term "available" instead.
Test Plan

I've been running pmcstat with this for my other pmcstat testing recently.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb retitled this revision from to Use the cpuset API more consistently..
jhb updated this object.
jhb edited the test plan for this revision. (Show Details)
jhb added reviewers: emaste, davide.
emaste edited edge metadata.

No objection from me

This revision is now accepted and ready to land.May 26 2015, 7:52 PM
This revision was automatically updated to reflect the committed changes.