Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Oct 2006 03:08:02 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 107723 for review
Message-ID:  <200610120308.k9C382BU077305@repoman.freebsd.org>

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

Change 107723 by jb@jb_freebsd8 on 2006/10/12 03:07:43

	Remove optional KSE now that it's going on another branch.

Affected files ...

.. //depot/projects/dtrace/src/sys/sys/rtprio.h#6 edit
.. //depot/projects/dtrace/src/sys/sys/sched.h#7 edit

Differences ...

==== //depot/projects/dtrace/src/sys/sys/rtprio.h#6 (text+ko) ====

@@ -75,15 +75,9 @@
 };
 
 #ifdef _KERNEL
-#ifdef KSE
 struct ksegrp;
 int	rtp_to_pri(struct rtprio *, struct ksegrp *);
 void	pri_to_rtp(struct ksegrp *, struct rtprio *);
-#else
-struct thread;
-int	rtp_to_pri(struct rtprio *, struct thread *);
-void	pri_to_rtp(struct thread *, struct rtprio *);
-#endif
 #endif
 #endif
 

==== //depot/projects/dtrace/src/sys/sys/sched.h#7 (text+ko) ====

@@ -52,35 +52,27 @@
  * KSE Groups contain scheduling priority information.  They record the
  * behavior of groups of KSEs and threads.
  */
-#ifdef KSE
 void	sched_class(struct ksegrp *kg, int class);
 void	sched_exit_ksegrp(struct ksegrp *kg, struct thread *childtd);
 void	sched_fork_ksegrp(struct thread *td, struct ksegrp *child);
-#else
-void	sched_class(struct thread *td, int class);
-#endif
 void	sched_nice(struct proc *p, int nice);
 
 /*
  * Threads are switched in and out, block on resources, have temporary
  * priorities inherited from their ksegs, and use up cpu time.
  */
-#ifdef KSE
 void	sched_exit_thread(struct thread *td, struct thread *child);
 void	sched_fork_thread(struct thread *td, struct thread *child);
 void	sched_lend_prio(struct thread *td, u_char prio);
 void	sched_lend_user_prio(struct thread *td, u_char pri);
-#endif
 fixpt_t	sched_pctcpu(struct thread *td);
 void	sched_prio(struct thread *td, u_char prio);
 void	sched_sleep(struct thread *td);
 void	sched_switch(struct thread *td, struct thread *newtd, int flags);
 void	sched_unlend_prio(struct thread *td, u_char prio);
-#ifdef KSE
 void	sched_unlend_user_prio(struct thread *td, u_char pri);
 void	sched_user_prio(struct ksegrp *kg, u_char prio);
 void	sched_userret(struct thread *td);
-#endif
 void	sched_wakeup(struct thread *td);
 
 /*
@@ -91,9 +83,6 @@
 void	sched_rem(struct thread *td);
 void	sched_tick(void);
 void	sched_relinquish(struct thread *td);
-#ifndef KSE
-void	sched_run_ithread(struct thread *td);
-#endif
 
 /*
  * Binding makes cpu affinity permanent while pinning is used to temporarily
@@ -109,9 +98,7 @@
  * These procedures tell the process data structure allocation code how
  * many bytes to actually allocate.
  */
-#ifdef KSE
 int	sched_sizeof_ksegrp(void);
-#endif
 int	sched_sizeof_proc(void);
 int	sched_sizeof_thread(void);
 
@@ -129,15 +116,11 @@
 
 /* temporarily here */
 void schedinit(void);
-#ifdef KSE
 void sched_init_concurrency(struct ksegrp *kg);
 void sched_set_concurrency(struct ksegrp *kg, int cuncurrency);
-#endif
 void sched_schedinit(void);
-#ifdef KSE
 void sched_newproc(struct proc *p, struct ksegrp *kg, struct thread *td);
 void sched_thread_exit(struct thread *td);
-#endif
 void sched_newthread(struct thread *td);
 
 #endif /* !_SYS_SCHED_H_ */



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