summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2003-10-27 07:15:47 +0000
committerjeff <jeff@FreeBSD.org>2003-10-27 07:15:47 +0000
commitd74e8d0250e299cf2b961d38b18ca927d7b12bd9 (patch)
tree95a169c37c8a6fec72d76df9e28f254ef25e475d /sys
parentd382f2f6926d010510a442680911a9a2fd754cb7 (diff)
downloadFreeBSD-src-d74e8d0250e299cf2b961d38b18ca927d7b12bd9.zip
FreeBSD-src-d74e8d0250e299cf2b961d38b18ca927d7b12bd9.tar.gz
- Don't set td_priority directly here, use sched_prio().
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c
index 6e57414..80bf382 100644
--- a/sys/kern/kern_resource.c
+++ b/sys/kern/kern_resource.c
@@ -409,7 +409,7 @@ 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;
- curthread->td_priority = kg->kg_user_pri; /* XXX dubious */
+ sched_prio(curthread, kg->kg_user_pri); /* XXX dubious */
}
return (0);
}
OpenPOWER on IntegriCloud