summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2004-12-30 20:29:58 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2004-12-30 20:29:58 +0000
commit63710c4d35ceb301e9f8af073aac89e95c1fe66b (patch)
tree3db78404a3bf8319128dcd14795f6b1149c927aa /sys/kern
parent753d1af16593d9609a8e8872a4eb11cadb35765c (diff)
Notes
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_intr.c7
-rw-r--r--sys/kern/kern_resource.c1
-rw-r--r--sys/kern/kern_synch.c2
3 files changed, 3 insertions, 7 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c
index 936cc304f04c..6f22daacc419 100644
--- a/sys/kern/kern_intr.c
+++ b/sys/kern/kern_intr.c
@@ -45,6 +45,7 @@ __FBSDID("$FreeBSD$");
#include <sys/proc.h>
#include <sys/random.h>
#include <sys/resourcevar.h>
+#include <sys/sched.h>
#include <sys/sysctl.h>
#include <sys/unistd.h>
#include <sys/vmmeter.h>
@@ -143,14 +144,12 @@ ithread_update(struct ithd *ithd)
ih = TAILQ_FIRST(&ithd->it_handlers);
if (ih == NULL) {
mtx_lock_spin(&sched_lock);
- td->td_priority = PRI_MAX_ITHD;
- td->td_base_pri = PRI_MAX_ITHD;
+ sched_prio(td, PRI_MAX_ITHD);
mtx_unlock_spin(&sched_lock);
return;
}
mtx_lock_spin(&sched_lock);
- td->td_priority = ih->ih_pri;
- td->td_base_pri = ih->ih_pri;
+ sched_prio(td, ih->ih_pri);
mtx_unlock_spin(&sched_lock);
missed = 0;
TAILQ_FOREACH(ih, &ithd->it_handlers, ih_next) {
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c
index d9e25c81d6f5..7368cbdac5c1 100644
--- a/sys/kern/kern_resource.c
+++ b/sys/kern/kern_resource.c
@@ -423,7 +423,6 @@ rtp_to_pri(struct rtprio *rtp, struct ksegrp *kg)
}
sched_class(kg, rtp->type);
if (curthread->td_ksegrp == kg) {
- curthread->td_base_pri = kg->kg_user_pri;
sched_prio(curthread, kg->kg_user_pri); /* XXX dubious */
}
return (0);
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index bd28c1de0b76..3f5689a48d41 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -212,8 +212,6 @@ msleep(ident, mtx, priority, wmesg, timo)
/*
* Adjust this thread's priority.
- *
- * XXX: do we need to save priority in td_base_pri?
*/
mtx_lock_spin(&sched_lock);
sched_prio(td, priority & PRIMASK);