Remove unused code.

This commit is contained in:
David Xu 2006-03-13 10:37:25 +00:00
parent 62dd3397a8
commit 28e989e9ca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156680
2 changed files with 0 additions and 25 deletions

View File

@ -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)
{

View File

@ -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);