Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Fixup the big mutex_exit comment a little. It's act...



details:   https://anonhg.NetBSD.org/src/rev/be0b9ecba558
branches:  trunk
changeset: 957913:be0b9ecba558
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Dec 15 08:17:31 2020 +0000

description:
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.

diffstat:

 sys/kern/kern_mutex.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 82e985f5b903 -r be0b9ecba558 sys/kern/kern_mutex.c
--- a/sys/kern/kern_mutex.c     Tue Dec 15 05:48:30 2020 +0000
+++ b/sys/kern/kern_mutex.c     Tue Dec 15 08:17:31 2020 +0000
@@ -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 @@
                 *   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



Home | Main Index | Thread Index | Old Index