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)
Sun, Sep 6, 4:21 PM
Unknown Object (File)
Sat, Sep 5, 12:49 PM
Unknown Object (File)
Sat, Sep 5, 9:49 AM
Unknown Object (File)
Fri, Sep 4, 10:23 PM
Unknown Object (File)
Fri, Sep 4, 1:53 PM
Unknown Object (File)
Wed, Sep 2, 4:56 PM
Unknown Object (File)
Wed, Sep 2, 5:28 AM
Unknown Object (File)
Mon, Aug 31, 7:43 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