thread: retire thread_find

tdfind should be used instead.
This commit is contained in:
mjg 2020-11-10 01:57:48 +00:00
parent 146fd63397
commit 094a177a45
2 changed files with 0 additions and 14 deletions

View File

@ -1325,19 +1325,6 @@ thread_single_end(struct proc *p, int mode)
kick_proc0();
}
struct thread *
thread_find(struct proc *p, lwpid_t tid)
{
struct thread *td;
PROC_LOCK_ASSERT(p, MA_OWNED);
FOREACH_THREAD_IN_PROC(p, td) {
if (td->td_tid == tid)
break;
}
return (td);
}
/* Locate a thread by number; return with proc lock held. */
struct thread *
tdfind(lwpid_t tid, pid_t pid)

View File

@ -1153,7 +1153,6 @@ void thread_suspend_one(struct thread *td);
void thread_unlink(struct thread *td);
void thread_unsuspend(struct proc *p);
void thread_wait(struct proc *p);
struct thread *thread_find(struct proc *p, lwpid_t tid);
void stop_all_proc(void);
void resume_all_proc(void);