aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/lock.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-01-05 12:48:19 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-01-05 12:48:19 +0000
commit2e77cad11dc5ec9c14c074dfc127f8420075aa7c (patch)
treec160653223c1bbca4cc10daa6ff08b908f8a3f5f /sys/sys/lock.h
parent6b8dd26e7c5f2caf9e5094d6fa15d8edcace65a0 (diff)
downloadsrc-2e77cad11dc5ec9c14c074dfc127f8420075aa7c.tar.gz
src-2e77cad11dc5ec9c14c074dfc127f8420075aa7c.zip
locks: add default delay struct
Use it for all primitives. This makes everything fit in 8 bytes.
Notes
Notes: svn path=/head/; revision=356375
Diffstat (limited to 'sys/sys/lock.h')
-rw-r--r--sys/sys/lock.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h
index 001d1e23af40..e82ff7db4825 100644
--- a/sys/sys/lock.h
+++ b/sys/sys/lock.h
@@ -187,6 +187,10 @@ struct lock_delay_config {
u_short max;
};
+extern struct lock_delay_config locks_delay;
+extern u_short locks_delay_retries;
+extern u_short locks_delay_loops;
+
struct lock_delay_arg {
struct lock_delay_config *config;
u_short delay;