aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/lock.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h
index 9dd4e642f320..e682f590985c 100644
--- a/sys/sys/lock.h
+++ b/sys/sys/lock.h
@@ -195,6 +195,13 @@ lock_delay_arg_init(struct lock_delay_arg *la, struct lock_delay_config *lc)
la->spin_cnt = 0;
}
+static inline void
+lock_delay_arg_init_noadapt(struct lock_delay_arg *la)
+{
+ la->delay = 0;
+ la->spin_cnt = 0;
+}
+
#define lock_delay_spin(n) do { \
u_int _i; \
\