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
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable