summaryrefslogtreecommitdiff
path: root/sys/dev/lockstat.c
diff options
context:
space:
mode:
authorad <ad@NetBSD.org>2020-05-23 23:42:41 +0000
committerad <ad@NetBSD.org>2020-05-23 23:42:41 +0000
commit14b4bbb24d6307d383b4d1c8f1052fe81cf5beb2 (patch)
tree00ff6cdcca84c5de9e4fff774e642f8a928ff7b4 /sys/dev/lockstat.c
parent916d033fe882bad0aedd42f1df59477372c9f5bd (diff)
Move proc_lock into the data segment. It was dynamically allocated because
at the time we had mutex_obj_alloc() but not __cacheline_aligned.
Diffstat (limited to 'sys/dev/lockstat.c')
-rw-r--r--sys/dev/lockstat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/lockstat.c b/sys/dev/lockstat.c
index b2db655caa9..4f436c5311e 100644
--- a/sys/dev/lockstat.c
+++ b/sys/dev/lockstat.c
@@ -1,4 +1,4 @@
-/* $NetBSD: lockstat.c,v 1.26 2019/11/23 17:32:10 ad Exp $ */
+/* $NetBSD: lockstat.c,v 1.27 2020/05/23 23:42:42 ad Exp $ */
/*-
* Copyright (c) 2006, 2007, 2019 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lockstat.c,v 1.26 2019/11/23 17:32:10 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lockstat.c,v 1.27 2020/05/23 23:42:42 ad Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -283,13 +283,13 @@ lockstat_stop(lsdisable_t *ld)
lockstat_init_tables(NULL);
/* Run through all LWPs and clear the slate for the next run. */
- mutex_enter(proc_lock);
+ mutex_enter(&proc_lock);
LIST_FOREACH(l, &alllwp, l_list) {
l->l_pfailaddr = 0;
l->l_pfailtime = 0;
l->l_pfaillock = 0;
}
- mutex_exit(proc_lock);
+ mutex_exit(&proc_lock);
if (ld == NULL)
return error;