Use get_pcpu() instead of an open-coded pcpu_find(td->td_oncpu). This
eliminates some unneccessary memory accesses and on amd64 results in a
shorter instruction sequence. Note that get_pcpu() didn't exist when
rmlocks were added.
Details
Details
- Reviewers
mjg jah - Commits
- rGc84bb8cd771c: rmlock: Micro-optimize read locking
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 44577 Build 41465: arc lint + arc unit