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)
Dec 1 2024, 3:19 PM
Unknown Object (File)
Nov 17 2024, 8:07 AM
Unknown Object (File)
Nov 16 2024, 9:04 AM
Unknown Object (File)
Nov 16 2024, 4:18 AM
Unknown Object (File)
Nov 14 2024, 8:05 AM
Unknown Object (File)
Nov 10 2024, 1:33 AM
Unknown Object (File)
Nov 9 2024, 4:24 AM
Unknown Object (File)
Oct 11 2024, 8:56 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