summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2006-03-13 10:37:25 +0000
committerDavid Xu <davidxu@FreeBSD.org>2006-03-13 10:37:25 +0000
commit28e989e9ca5acfbb491a7005ad27444f6a9eb65e (patch)
treed18ca10f61a0fc078217e122f33559e0bf5f0a84
parent62dd3397a8fffe2750f4d9baf12f7bcb2b50ec0e (diff)
Notes
-rw-r--r--sys/kern/kern_thread.c24
-rw-r--r--sys/sys/proc.h1
2 files changed, 0 insertions, 25 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c
index 6b96f7406994..1d68f4403dfa 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 e8f6dac4c5ff..19997af73a6e 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);