Page MenuHomeFreeBSD

Add a KPI for the delay while spinning on a spin lock.
ClosedPublic

Authored by jhb on Nov 5 2018, 6:11 PM.
Tags
None
Referenced Files
F167259750: D17849.diff
Thu, Aug 20, 11:16 AM
F167242565: D17849.diff
Thu, Aug 20, 7:13 AM
Unknown Object (File)
Wed, Aug 19, 1:24 PM
Unknown Object (File)
Tue, Aug 18, 7:32 PM
Unknown Object (File)
Wed, Aug 12, 11:28 AM
Unknown Object (File)
Jul 11 2026, 4:10 PM
Unknown Object (File)
Jun 4 2026, 6:42 PM
Unknown Object (File)
May 25 2026, 9:17 PM

Details

Summary

Replace a call to DELAY(1) with a new cpu_lock_delay() KPI. Currently
cpu_lock_delay() is defined to DELAY(1) on all platforms. However,
platforms with a DELAY() implementation that uses spin locks should
implement a custom cpu_lock_delay() doesn't use locks.

Test Plan
  • passed make tinderbox (aside from unrelated breakage in arm.GENERIC-NODEBUG)
  • booted in i386 and amd64 VMs
  • original PR reporter booted combined patch on amd64 machine

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 20640
Build 20056: arc lint + arc unit