From 55e48935f0dc96032cb47d3087a352de8f61a561 Mon Sep 17 00:00:00 2001 From: dsieger Date: Tue, 17 Jul 2007 20:56:22 +0000 Subject: [PATCH] Remove references to SCHED_LOCK(9), which is gone. Slightly sync with reality. XXX: This needs more updates after idle-lwp changes. --- share/man/man9/ctxsw.9 | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/share/man/man9/ctxsw.9 b/share/man/man9/ctxsw.9 index 4cee808d2d73..f0888280d23f 100644 --- a/share/man/man9/ctxsw.9 +++ b/share/man/man9/ctxsw.9 @@ -1,4 +1,4 @@ -.\" $NetBSD: ctxsw.9,v 1.20 2007/07/14 10:52:48 ad Exp $ +.\" $NetBSD: ctxsw.9,v 1.21 2007/07/17 20:56:22 dsieger Exp $ .\" .\" Copyright (c) 1996, 2002 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -120,19 +120,18 @@ Finally, the new LWP is checked to see if it was previously preempted while inside a restartable atomic sequence .Pq see Xr ras 9 . .Pp -These functions must be called with the scheduler lock held -(see -.Xr SCHED_LOCK 9 ) -and at the +.Fn mi_switch +has to be called with the LWP lock held +(through calling +.Fn lwp_lock +first) and at the .Xr splsched 9 -interrupt protection level. -Both functions return with the scheduler lock released. +interrupt protection level. It returns with the LWP lock released. .Sh RETURN VALUES -These functions return 1 if a context switch was performed to a different -LWP, 0 otherwise. +These functions return 1 if a context switch was performed to a +different LWP, 0 otherwise. .Sh SEE ALSO -.Xr SCHED_LOCK 9 , .Xr condvar 9 , .Xr pmap 9 , .Xr ras 9 , -.Xr splsched 9 \ No newline at end of file +.Xr splsched 9