diff --git a/sys/sched.h b/sys/sched.h
index fb01f21..1784ee2 100644
--- a/sys/sched.h
+++ b/sys/sched.h
@@ -69,8 +69,10 @@
 #ifndef        _SYS_SCHED_H_
 #define        _SYS_SCHED_H_
 
+#ifdef _KERNEL
 #include <sys/queue.h>
 #include <sys/tree.h>
+#endif
 
 /*
  * Posix defines a <sched.h> which may want to include <sys/sched.h>
@@ -88,11 +90,9 @@
 #define CP_IDLE                4
 #define CPUSTATES      5
 
-#define        SCHED_NQS       32                      /* 32 run queues. */
-
+#ifdef _KERNEL
 /*
  * Per-CPU scheduler state.
- * XXX - expose to userland for now.
  */
 struct schedstate_percpu {
        struct timeval spc_runtime;     /* time curproc started running */
@@ -107,15 +107,13 @@ struct schedstate_percpu {
        u_int spc_nrun;                 /* procs on the run queues */
        fixpt_t spc_ldavg;              /* shortest load avg. for this cpu */
 
-       RB_HEAD(prochead, proc) spc_runq;
-
 #ifdef notyet
        struct proc *spc_reaper;        /* dead proc reaper */
 #endif
        LIST_HEAD(,proc) spc_deadproc;
-};
 
-#ifdef _KERNEL
+       RB_HEAD(prochead, proc) spc_runq;
+};
 
 /* spc_flags */
 #define SPCF_SEENRR             0x0001  /* process has seen roundrobin() */
-- 
1.7.6

Reply via email to