Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jun 2004 08:05:15 GMT
From:      Julian Elischer <julian@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 55441 for review
Message-ID:  <200406210805.i5L85FqN032354@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=55441

Change 55441 by julian@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)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406210805.i5L85FqN032354>