PERFORCE change 55441 for review
Julian Elischer
julian at FreeBSD.org
Mon Jun 21 08:05:36 GMT 2004
http://perforce.freebsd.org/chv.cgi?CH=55441
Change 55441 by julian at julian_jules1 on 2004/06/21 08:04:47
add comments
Affected files ...
.. //depot/projects/nsched/sys/kern/sched_4bsd.c#16 edit
Differences ...
==== //depot/projects/nsched/sys/kern/sched_4bsd.c#16 (text+ko) ====
@@ -1916,6 +1916,26 @@
setrunqueue(td);
}
+/*
+ * Decide whether to pass this newly runnable thread on to the
+ * system scheduler. This basically implements the concurrancy
+ * limit for a KSE. (e.g. "threading fairness")
+ * Called from:
+ * kick_init()
+ * fork1()
+ * ithread_destroy()
+ * ithread_schedule()
+ * kthread_create()
+ * turnstyle_unpend()
+ * kse_create()
+ * thread_switchout()
+ * pagezero_start()
+ * * linux_clone()
+ * sched_switch() (local)
+ * sched_wakeup() (local)
+ * sched_thr_newthread() (local)
+ * adjustrunqueue() (local)
+ */
void
setrunqueue(struct thread *td)
{
@@ -2028,6 +2048,17 @@
* XXX I'm not sure WHY they are here.. *
************************************************************************/
/* Critical sections that prevent preemption. */
+/* Called from:
+ * _mtx_lock_spin_flags()
+ * _mtx_lock_spin()
+ * ?kmupetest()
+ * kmstartup()
+ * intr_execute_handlers
+ * pmap_invalidate_{page,range,all}()
+ * pmap_activate()
+ * vm86_intcall()
+ * vm86_datacall()
+ */
void
critical_enter(void)
{
More information about the p4-projects
mailing list