it's cpu_switchto (not cpu_switch)

This commit is contained in:
skrll 2020-12-15 08:35:52 +00:00
parent 1c4c122099
commit b18dbbf907

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_mutex.c,v 1.94 2020/12/15 08:17:31 skrll Exp $ */
/* $NetBSD: kern_mutex.c,v 1.95 2020/12/15 08:35:52 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.94 2020/12/15 08:17:31 skrll Exp $");
__KERNEL_RCSID(0, "$NetBSD: kern_mutex.c,v 1.95 2020/12/15 08:35:52 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 cpu_switch() posts a store fence after setting curlwp
* o cpu_switchto() posts a store fence after setting curlwp
* and before resuming execution of an LWP.
*
* o _kernel_lock() posts a store fence before setting