From 7b611b0cb22347b6dcb39cb97b7826908f188d10 Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 30 Dec 2004 20:29:58 +0000 Subject: Stop explicitly touching td_base_pri outside of the scheduler and simply set a thread's priority via sched_prio() when that is the desired action. The schedulers will start managing td_base_pri internally shortly. --- sys/kern/kern_resource.c | 1 - 1 file changed, 1 deletion(-) (limited to 'sys/kern/kern_resource.c') diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index d9e25c8..7368cbd 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); -- cgit v1.1