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
Unknown Object (File)
Sat, Jul 11, 4:10 PM
Unknown Object (File)
Jun 4 2026, 6:42 PM
Unknown Object (File)
May 25 2026, 9:17 PM
Unknown Object (File)
May 25 2026, 5:47 AM
Unknown Object (File)
May 23 2026, 3:53 AM
Unknown Object (File)
May 20 2026, 11:40 AM
Unknown Object (File)
May 15 2026, 9:09 PM
Unknown Object (File)
May 3 2026, 7:20 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