diff options
author | julian <julian@FreeBSD.org> | 2002-02-07 20:58:47 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2002-02-07 20:58:47 +0000 |
commit | b5eb64d6f0fccb72419da5552deee22cb6117fac (patch) | |
tree | b267ad497d8d81c2c79c107443dabe850da2126b /sys/kern/p1003_1b.c | |
parent | fce570367d0faf3002916a499e684172e61d8b9b (diff) | |
download | FreeBSD-src-b5eb64d6f0fccb72419da5552deee22cb6117fac.zip FreeBSD-src-b5eb64d6f0fccb72419da5552deee22cb6117fac.tar.gz |
Pre-KSE/M3 commit.
this is a low-functionality change that changes the kernel to access the main
thread of a process via the linked list of threads rather than
assuming that it is embedded in the process. It IS still embeded there
but remove all teh code that assumes that in preparation for the next commit
which will actually move it out.
Reviewed by: peter@freebsd.org, gallatin@cs.duke.edu, benno rice,
Diffstat (limited to 'sys/kern/p1003_1b.c')
-rw-r--r-- | sys/kern/p1003_1b.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/p1003_1b.c b/sys/kern/p1003_1b.c index 0409d63..e6bad42 100644 --- a/sys/kern/p1003_1b.c +++ b/sys/kern/p1003_1b.c @@ -128,7 +128,7 @@ int sched_setparam(struct thread *td, e = ESRCH; goto done2; } - targettd = &targetp->p_thread; /* XXXKSE */ + targettd = FIRST_THREAD_IN_PROC(targetp); /* XXXKSE */ } e = p_cansched(td->td_proc, targetp); @@ -164,7 +164,7 @@ int sched_getparam(struct thread *td, e = ESRCH; goto done2; } - targettd = &targetp->p_thread; /* XXXKSE */ + targettd = FIRST_THREAD_IN_PROC(targetp); /* XXXKSE */ } e = p_cansee(td->td_proc, targetp); @@ -206,7 +206,7 @@ int sched_setscheduler(struct thread *td, e = ESRCH; goto done2; } - targettd = &targetp->p_thread; /* XXXKSE */ + targettd = FIRST_THREAD_IN_PROC(targetp); /* XXXKSE */ } e = p_cansched(td->td_proc, targetp); @@ -241,7 +241,7 @@ int sched_getscheduler(struct thread *td, e = ESRCH; goto done2; } - targettd = &targetp->p_thread; /* XXXKSE */ + targettd = FIRST_THREAD_IN_PROC(targetp); /* XXXKSE */ } e = p_cansee(td->td_proc, targetp); @@ -317,7 +317,7 @@ int sched_rr_get_interval(struct thread *td, e = ESRCH; goto done2; } - targettd = &targetp->p_thread; /* XXXKSE */ + targettd = FIRST_THREAD_IN_PROC(targetp); /* XXXKSE */ } e = p_cansee(td->td_proc, targetp); |