summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_intr.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-06-30 03:11:26 +0000
committerjhb <jhb@FreeBSD.org>2001-06-30 03:11:26 +0000
commitdcedf89d63b0d96d2353f93d54c6fd039ce6bc54 (patch)
tree36ef0fade9a850240727492544cd098938b6e8a2 /sys/kern/kern_intr.c
parent4db4ecf48f5749f368bdadc4c5a3865015eadb86 (diff)
downloadFreeBSD-src-dcedf89d63b0d96d2353f93d54c6fd039ce6bc54.zip
FreeBSD-src-dcedf89d63b0d96d2353f93d54c6fd039ce6bc54.tar.gz
Make the schedlock saved critical section state a per-thread property.
Diffstat (limited to 'sys/kern/kern_intr.c')
-rw-r--r--sys/kern/kern_intr.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c
index ac9213b..07ee598 100644
--- a/sys/kern/kern_intr.c
+++ b/sys/kern/kern_intr.c
@@ -344,7 +344,6 @@ ithread_schedule(struct ithd *ithread, int do_switch)
{
struct int_entropy entropy;
struct proc *p;
- critical_t savecrit;
/*
* If no ithread or no handlers, then we have a stray interrupt.
@@ -383,13 +382,10 @@ ithread_schedule(struct ithd *ithread, int do_switch)
p->p_stat = SRUN;
setrunqueue(p);
if (do_switch && curproc->p_stat == SRUN) {
- savecrit = sched_lock.mtx_savecrit;
- mtx_intr_enable(&sched_lock);
if (curproc != PCPU_GET(idleproc))
setrunqueue(curproc);
curproc->p_stats->p_ru.ru_nivcsw++;
mi_switch();
- sched_lock.mtx_savecrit = savecrit;
} else
need_resched(curproc);
} else {
OpenPOWER on IntegriCloud