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, Oct 23, 2:16 PM
Unknown Object (File)
Thu, Oct 23, 2:16 PM
Unknown Object (File)
Thu, Oct 23, 5:30 AM
Unknown Object (File)
Aug 21 2025, 9:12 AM
Unknown Object (File)
Aug 14 2025, 10:28 PM
Unknown Object (File)
Jun 24 2025, 3:07 AM
Unknown Object (File)
Jun 19 2025, 8:15 AM
Unknown Object (File)
Jun 17 2025, 9:49 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