aboutsummaryrefslogtreecommitdiff
path: root/share/man/man9/scheduler.9
diff options
context:
space:
mode:
authorChad David <davidc@FreeBSD.org>2002-04-12 06:03:47 +0000
committerChad David <davidc@FreeBSD.org>2002-04-12 06:03:47 +0000
commit4edac09c3eaa46e2eb637c117f2f68e9efa0ef72 (patch)
treee4d8a2b3ae652d9dea628a499a0a762d74a3d14a /share/man/man9/scheduler.9
parent64fa2b20c64f64899a2c787faac0562dffc54085 (diff)
downloadsrc-4edac09c3eaa46e2eb637c117f2f68e9efa0ef72.tar.gz
src-4edac09c3eaa46e2eb637c117f2f68e9efa0ef72.zip
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
Notes
Notes: svn path=/head/; revision=94488
Diffstat (limited to 'share/man/man9/scheduler.9')
-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 38523d0b8cc2..0ffd1dc9486c 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