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)
Fri, Nov 21, 3:51 AM
Unknown Object (File)
Thu, Nov 20, 10:21 PM
Unknown Object (File)
Thu, Nov 20, 10:21 PM
Unknown Object (File)
Thu, Nov 20, 10:15 PM
Unknown Object (File)
Wed, Nov 19, 8:54 AM
Unknown Object (File)
Tue, Nov 18, 4:24 AM
Unknown Object (File)
Oct 23 2025, 2:16 PM
Unknown Object (File)
Oct 23 2025, 2:16 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