PERFORCE change 52107 for review

Julian Elischer julian at FreeBSD.org
Sun May 2 17:15:39 PDT 2004


http://perforce.freebsd.org/chv.cgi?CH=52107

Change 52107 by julian at julian_ref on 2004/05/02 17:14:47

	shuffle shuffle

Affected files ...

.. //depot/projects/nsched/sys/kern/kern_kse.c#3 edit
.. //depot/projects/nsched/sys/kern/kern_thread.c#10 edit

Differences ...

==== //depot/projects/nsched/sys/kern/kern_kse.c#3 (text+ko) ====

@@ -63,18 +63,18 @@
 /*
  * KSEGRP related storage.
  */
-static uma_zone_t ksegrp_zone;
-static uma_zone_t thread_zone;
 static uma_zone_t upcall_zone;
 
 /* DEBUG ONLY */
 extern int virtual_cpu;
-extern int thread_debug = 0;
-extern int max_threads_per_proc = 1500;
-extern int max_groups_per_proc = 500;
+extern int thread_debug;
+extern int max_threads_per_proc;
+extern int max_groups_per_proc;
 extern int max_threads_hits;
+extern struct mtx kse_zombie_lock;
 
 
+
 #define RANGEOF(type, start, end) (offsetof(type, end) - offsetof(type, start))
 
 TAILQ_HEAD(, kse_upcall) zombie_upcalls =
@@ -82,6 +82,8 @@
 
 static int thread_update_usr_ticks(struct thread *td, int user);
 static void thread_alloc_spare(struct thread *td, struct thread *spare);
+void kse_initialise(void);
+void kse_GC(void);
 
 
 struct kse_upcall *

==== //depot/projects/nsched/sys/kern/kern_thread.c#10 (text+ko) ====

@@ -60,12 +60,13 @@
 
 #include <machine/frame.h>
 
+/* extern void kse_initialise(void);*/
+extern void kse_GC(void);
 /*
  * KSEGRP related storage.
  */
 static uma_zone_t ksegrp_zone;
 static uma_zone_t thread_zone;
-static uma_zone_t upcall_zone;
 
 /* DEBUG ONLY */
 SYSCTL_NODE(_kern, OID_AUTO, threads, CTLFLAG_RW, 0, "thread allocation");
@@ -94,9 +95,6 @@
 struct mtx kse_zombie_lock;
 MTX_SYSINIT(kse_zombie_lock, &kse_zombie_lock, "kse zombie lock", MTX_SPIN);
 
-static int thread_update_usr_ticks(struct thread *td, int user);
-static void thread_alloc_spare(struct thread *td, struct thread *spare);
-
 static int
 sysctl_kse_virtual_cpu(SYSCTL_HANDLER_ARGS)
 {
@@ -674,7 +672,7 @@
  * Purge a ksegrp resource. When a ksegrp is preparing to
  * exit, it calls this function.
  */
-static void
+void
 thread_purge_group(struct thread *td)
 {
 	struct ksegrp *kg;


More information about the p4-projects mailing list