From df0e90beed955c2fe2128b911d58ae2e1bcb3e8c Mon Sep 17 00:00:00 2001 From: davidxu Date: Mon, 13 Mar 2006 10:37:25 +0000 Subject: [PATCH] Remove unused code. --- sys/kern/kern_thread.c | 24 ------------------------ sys/sys/proc.h | 1 - 2 files changed, 25 deletions(-) diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 6b96f740699..1d68f4403df 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -1022,30 +1022,6 @@ thread_single_end(void) mtx_unlock_spin(&sched_lock); } -/* - * Called before going into an interruptible sleep to see if we have been - * interrupted or requested to exit. - */ -int -thread_sleep_check(struct thread *td) -{ - struct proc *p; - - p = td->td_proc; - mtx_assert(&sched_lock, MA_OWNED); - if (p->p_flag & P_HADTHREADS) { - if (p->p_singlethread != td) { - if (p->p_flag & P_SINGLE_EXIT) - return (EINTR); - if (p->p_flag & P_SINGLE_BOUNDARY) - return (ERESTART); - } - if (td->td_flags & TDF_INTERRUPT) - return (td->td_intrval); - } - return (0); -} - struct thread * thread_find(struct proc *p, lwpid_t tid) { diff --git a/sys/sys/proc.h b/sys/sys/proc.h index e8f6dac4c5f..19997af73a6 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -943,7 +943,6 @@ struct thread *thread_schedule_upcall(struct thread *td, struct kse_upcall *ku); void thread_signal_add(struct thread *td, ksiginfo_t *); int thread_single(int how); void thread_single_end(void); -int thread_sleep_check(struct thread *td); void thread_stash(struct thread *td); int thread_statclock(int user); void thread_stopped(struct proc *p); -- 2.45.0