summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavidc <davidc@FreeBSD.org>2002-04-12 06:03:47 +0000
committerdavidc <davidc@FreeBSD.org>2002-04-12 06:03:47 +0000
commite402b1524f60a66deeefffee30be5c1654c49af3 (patch)
treee4d8a2b3ae652d9dea628a499a0a762d74a3d14a
parent73b614cd70221f8b42d2b55b5b4a9928d2c234dd (diff)
downloadFreeBSD-src-e402b1524f60a66deeefffee30be5c1654c49af3.zip
FreeBSD-src-e402b1524f60a66deeefffee30be5c1654c49af3.tar.gz
Update the prototype for maybe_resched to take a thread not a ksegrp.
Remove need_resched as it no longer exists. Cleanup the text for other functions that have changed out from under their descriptions. This page needs to be reviewed again after things settle down a bit. Reviewed by: jhb
-rw-r--r--share/man/man9/scheduler.930
1 files changed, 15 insertions, 15 deletions
diff --git a/share/man/man9/scheduler.9 b/share/man/man9/scheduler.9
index 38523d0..0ffd1dc 100644
--- a/share/man/man9/scheduler.9
+++ b/share/man/man9/scheduler.9
@@ -44,7 +44,7 @@
.Ft int
.Fn curpriority_cmp "struct proc *p"
.Ft void
-.Fn maybe_resched "struct ksegrp *kg"
+.Fn maybe_resched "struct thread *td"
.Ft void
.Fn propagate_priority "struct proc *p"
.Ft void
@@ -118,14 +118,14 @@ and is stored in the private variable
.Pp
The
.Fn maybe_resched
-function compares the priorities of the current process and process
-.Fa chk .
+function compares the priorities of the current thread and
+.Fa td .
If
-.Fa chk
-has a higher priority than the current process, then a context switch is
+.Fa td
+has a higher priority than the current thread, then a context switch is
needed, and
-.Fn need_resched
-is called to force a reschedule on the next return to userland.
+.Dv KEF_NEEDRESCHED
+is set.
.Pp
The
.Fn propagate_priority
@@ -153,13 +153,13 @@ not to the priority of the previously encountered process.
.Pp
The
.Fn resetpriority
-function recomputes the user priority of the process
-.Fa p
-stored in
-.Va p_usrpri
+function recomputes the user priority of the ksegrp
+.Fa kg
+(stored in
+.Va kg_user_pri )
and calls
.Fn maybe_resched
-to force a reschedule if needed.
+to force a reschedule of each thread in the group if needed.
.Pp
The
.Fn roundrobin
@@ -181,7 +181,7 @@ The
.Fn sched_setup
function is a
.Xr SYSINIT 9
-that is called to start up the callout driven scheduler functions.
+that is called to start the callout driven scheduler functions.
It just calls the
.Fn roundrobin
and
@@ -195,8 +195,8 @@ The
.Fn schedclock
function is called by
.Fn statclock
-to adjust the priority of the currently running process.
-It updates the process's estimated CPU time and then adjusts the priority via
+to adjust the priority of the currently running thread's ksegrp.
+It updates the group's estimated CPU time and then adjusts the priority via
.Fn resetpriority .
.Pp
The
OpenPOWER on IntegriCloud