Module Name: src
Committed By: skrll
Date: Tue Dec 15 08:17:31 UTC 2020
Modified Files:
src/sys/kern: kern_mutex.c
Log Message:
Fixup the big mutex_exit comment a little. It's actually, cpu_switchto
that posts a store fence and it's AFTER setting curlwp.
More to come.
To generate a diff of this commit:
cvs rdiff -u -r1.93 -r1.94 src/sys/kern/kern_mutex.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/kern_mutex.c
diff -u src/sys/kern/kern_mutex.c:1.93 src/sys/kern/kern_mutex.c:1.94
--- src/sys/kern/kern_mutex.c:1.93 Mon Dec 14 19:42:51 2020
+++ src/sys/kern/kern_mutex.c Tue Dec 15 08:17:31 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_mutex.c,v 1.93 2020/12/14 19:42:51 skrll Exp $ */
+/* $NetBSD: kern_mutex.c,v 1.94 2020/12/15 08:17:31 skrll Exp $ */
/*-
* Copyright (c) 2002, 2006, 2007, 2008, 2019 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
#define __MUTEX_PRIVATE
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_mutex.c,v 1.93 2020/12/14 19:42:51 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_mutex.c,v 1.94 2020/12/15 08:17:31 skrll Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -628,7 +628,7 @@ mutex_vector_enter(kmutex_t *mtx)
* completes before the modification of curlwp becomes
* visible to this CPU.
*
- * o mi_switch() posts a store fence before setting curlwp
+ * o cpu_switch() posts a store fence after setting curlwp
* and before resuming execution of an LWP.
*
* o _kernel_lock() posts a store fence before setting