summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2004-12-30 20:29:58 +0000
committerjhb <jhb@FreeBSD.org>2004-12-30 20:29:58 +0000
commit7b611b0cb22347b6dcb39cb97b7826908f188d10 (patch)
tree3db78404a3bf8319128dcd14795f6b1149c927aa /sys/compat
parent5624553de421f01520096aaaedc63434e38c8e31 (diff)
downloadFreeBSD-src-7b611b0cb22347b6dcb39cb97b7826908f188d10.zip
FreeBSD-src-7b611b0cb22347b6dcb39cb97b7826908f188d10.tar.gz
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.
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/ndis/subr_hal.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/compat/ndis/subr_hal.c b/sys/compat/ndis/subr_hal.c
index 42cea66..d9224a9 100644
--- a/sys/compat/ndis/subr_hal.c
+++ b/sys/compat/ndis/subr_hal.c
@@ -308,7 +308,6 @@ hal_raise_irql(REGARGS1(uint8_t irql))
mtx_lock_spin(&sched_lock);
oldirql = curthread->td_base_pri;
sched_prio(curthread, PI_REALTIME);
- curthread->td_base_pri = PI_REALTIME;
mtx_unlock_spin(&sched_lock);
return(oldirql);
@@ -324,7 +323,6 @@ hal_lower_irql(REGARGS1(uint8_t oldirql))
panic("IRQL_NOT_GREATER_THAN");
mtx_lock_spin(&sched_lock);
- curthread->td_base_pri = oldirql;
sched_prio(curthread, oldirql);
mtx_unlock_spin(&sched_lock);
OpenPOWER on IntegriCloud