Module Name: src Committed By: yamt Date: Thu Jun 2 00:58:26 UTC 2011
Modified Files: src/share/man/man9: cpu_switchto.9 Log Message: mention memory barriers necessary for non-interlocked adaptive mutex release. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/share/man/man9/cpu_switchto.9 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/share/man/man9/cpu_switchto.9 diff -u src/share/man/man9/cpu_switchto.9:1.11 src/share/man/man9/cpu_switchto.9:1.12 --- src/share/man/man9/cpu_switchto.9:1.11 Tue Apr 13 06:05:56 2010 +++ src/share/man/man9/cpu_switchto.9 Thu Jun 2 00:58:26 2011 @@ -1,4 +1,4 @@ -.\" $NetBSD: cpu_switchto.9,v 1.11 2010/04/13 06:05:56 jruoho Exp $ +.\" $NetBSD: cpu_switchto.9,v 1.12 2011/06/02 00:58:26 yamt Exp $ .\" .\" Copyright (c)2007 YAMAMOTO Takashi, .\" All rights reserved. @@ -25,7 +25,7 @@ .\" SUCH DAMAGE. .\" .\" ------------------------------------------------------------ -.Dd April 13, 2010 +.Dd June 2, 2011 .Dt CPU_SWITCHTO 9 .Os .\" ------------------------------------------------------------ @@ -64,6 +64,12 @@ .Xr curlwp 9 to .Fa newlwp . +If the architecture does non-interlocked adaptive mutex release, +.Fn cpu_switchto +does an equivalent of +.Xr membar_producer 9 , +before and after the modification of +.Xr curlwp 9 . .It .Fn cpu_switchto should be called at @@ -138,5 +144,6 @@ .Sh SEE ALSO .Xr swapcontext 3 , .Xr intro 9 , +.Xr membar_producer 9 , .Xr mutex 9 , .Xr spl 9