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)
Thu, Jun 4, 6:42 PM
Unknown Object (File)
Mon, May 25, 9:17 PM
Unknown Object (File)
Mon, May 25, 5:47 AM
Unknown Object (File)
Sat, May 23, 3:53 AM
Unknown Object (File)
Wed, May 20, 11:40 AM
Unknown Object (File)
Fri, May 15, 9:09 PM
Unknown Object (File)
May 3 2026, 7:20 PM
Unknown Object (File)
Apr 28 2026, 12:32 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