PERFORCE change 129936 for review
Peter Wemm
peter at FreeBSD.org
Sat Dec 1 16:48:30 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=129936
Change 129936 by peter at peter_daintree on 2007/12/02 00:47:30
Clean up more bits. Narrow some function prototype scopes.
Affected files ...
.. //depot/projects/bike_sched/sys/kern/kern_thread.c#10 edit
.. //depot/projects/bike_sched/sys/sys/proc.h#6 edit
Differences ...
==== //depot/projects/bike_sched/sys/kern/kern_thread.c#10 (text+ko) ====
@@ -77,6 +77,7 @@
MTX_SYSINIT(zombie_lock, &zombie_lock, "zombie lock", MTX_SPIN);
static void thread_zombie(struct thread *);
+static void thread_reap(void);
#endif
struct mtx tid_lock;
@@ -261,7 +262,7 @@
/*
* Reap zombie threads.
*/
-void
+static void
thread_reap(void)
{
struct thread *td_first, *td_next;
==== //depot/projects/bike_sched/sys/sys/proc.h#6 (text+ko) ====
@@ -362,10 +362,6 @@
#define TDI_LOCK 0x0008 /* Stopped on a lock. */
#define TDI_IWAIT 0x0010 /* Awaiting interrupt. */
-#define TD_CAN_UNBIND(td) \
- (((td)->td_pflags & TDP_CAN_UNBIND) && \
- ((td)->td_upcall != NULL))
-
#define TD_IS_SLEEPING(td) ((td)->td_inhibitors & TDI_SLEEPING)
#define TD_ON_SLEEPQ(td) ((td)->td_wchan != NULL)
#define TD_IS_SUSPENDED(td) ((td)->td_inhibitors & TDI_SUSPENDED)
@@ -617,8 +613,6 @@
LIST_FOREACH((p), &allproc, p_list)
#define FOREACH_THREAD_IN_PROC(p, td) \
TAILQ_FOREACH((td), &(p)->p_threads, td_plist)
-#define FOREACH_UPCALL_IN_PROC(p, ku) \
- TAILQ_FOREACH((ku), &(p)->p_upcalls, ku_link)
/* XXXKSE the following lines should probably only be used in 1:1 code: */
#define FIRST_THREAD_IN_PROC(p) TAILQ_FIRST(&(p)->p_threads)
@@ -814,7 +808,6 @@
void cpu_fork(struct thread *, struct proc *, struct thread *, int);
void cpu_set_fork_handler(struct thread *, void (*)(void *), void *);
-/* New in KSE. */
void cpu_set_upcall(struct thread *td, struct thread *td0);
void cpu_set_upcall_func(struct thread *, void (*)(void *), void *, stack_t *);
int cpu_set_user_tls(struct thread *, void *tls_base);
@@ -825,17 +818,13 @@
void cpu_thread_swapin(struct thread *);
void cpu_thread_swapout(struct thread *);
struct thread *thread_alloc(void);
-void thread_continued(struct proc *p);
void thread_exit(void) __dead2;
-int thread_export_context(struct thread *td, int willexit);
void thread_free(struct thread *td);
void thread_link(struct thread *td, struct proc *p);
-void thread_reap(void);
void thread_signal_add(struct thread *td, ksiginfo_t *);
int thread_single(int how);
void thread_single_end(void);
void thread_stash(struct thread *td);
-int thread_statclock(int user);
void thread_stopped(struct proc *p);
void childproc_stopped(struct proc *child, int reason);
void childproc_continued(struct proc *child);
More information about the p4-projects
mailing list