summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authorpgoyette <pgoyette@NetBSD.org>2019-12-12 02:15:42 +0000
committerpgoyette <pgoyette@NetBSD.org>2019-12-12 02:15:42 +0000
commitbefa4c1f2d9e4362e78023d5fe0747262a08e9f2 (patch)
tree04cecc40500fd11212e6f60bdb87df53c1653df0 /sys/dev/raidframe
parent0ee0dde3e8528f2f5d66656143736886f95b389e (diff)
Rather than keeping a separate mutex, condvar, and pserialize for each
module hook, we can share a common set of synchronization structures. This cuts the amount of cacheline_aligned data for these structures by 50%. Note that we still have a per-hook localcount, since we need to count individual references. As discussed with riastradh@ Welcome to 9.99.22 !
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_compat32.c4
-rw-r--r--sys/dev/raidframe/rf_compat50.c4
-rw-r--r--sys/dev/raidframe/rf_compat80.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/raidframe/rf_compat32.c b/sys/dev/raidframe/rf_compat32.c
index 52ae5b744ae..d31fbb0f30a 100644
--- a/sys/dev/raidframe/rf_compat32.c
+++ b/sys/dev/raidframe/rf_compat32.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_compat32.c,v 1.6 2019/03/01 11:06:56 pgoyette Exp $ */
+/* $NetBSD: rf_compat32.c,v 1.7 2019/12/12 02:15:43 pgoyette Exp $ */
/*
* Copyright (c) 2017 Matthew R. Green
@@ -166,7 +166,7 @@ static void
raidframe_netbsd32_init(void)
{
- MODULE_HOOK_SET(raidframe_netbsd32_ioctl_hook, "raid32",
+ MODULE_HOOK_SET(raidframe_netbsd32_ioctl_hook,
raidframe_netbsd32_ioctl);
}
diff --git a/sys/dev/raidframe/rf_compat50.c b/sys/dev/raidframe/rf_compat50.c
index 7eac8033a68..dd865833feb 100644
--- a/sys/dev/raidframe/rf_compat50.c
+++ b/sys/dev/raidframe/rf_compat50.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_compat50.c,v 1.11 2019/09/26 01:36:10 christos Exp $ */
+/* $NetBSD: rf_compat50.c,v 1.12 2019/12/12 02:15:43 pgoyette Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -240,7 +240,7 @@ static void
raidframe_50_init(void)
{
- MODULE_HOOK_SET(raidframe_ioctl_50_hook, "raid50", raidframe_ioctl_50);
+ MODULE_HOOK_SET(raidframe_ioctl_50_hook, raidframe_ioctl_50);
}
static void
diff --git a/sys/dev/raidframe/rf_compat80.c b/sys/dev/raidframe/rf_compat80.c
index 9c71dd46be4..e7d2cad918b 100644
--- a/sys/dev/raidframe/rf_compat80.c
+++ b/sys/dev/raidframe/rf_compat80.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_compat80.c,v 1.13 2019/03/01 11:06:56 pgoyette Exp $ */
+/* $NetBSD: rf_compat80.c,v 1.14 2019/12/12 02:15:43 pgoyette Exp $ */
/*
* Copyright (c) 2017 Matthew R. Green
@@ -348,7 +348,7 @@ static void
raidframe_80_init(void)
{
- MODULE_HOOK_SET(raidframe_ioctl_80_hook, "raid80", raidframe_ioctl_80);
+ MODULE_HOOK_SET(raidframe_ioctl_80_hook, raidframe_ioctl_80);
}
static void