diff options
author | jhb <jhb@FreeBSD.org> | 2001-03-28 02:46:21 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-03-28 02:46:21 +0000 |
commit | dea228e37800fc07cb4619f31e155310a4bad233 (patch) | |
tree | 736b7978158917eb079abef53bb1666484a42676 /sys/kern | |
parent | 98391b90da348c14bd0bd9487e807b726f734789 (diff) | |
download | FreeBSD-src-dea228e37800fc07cb4619f31e155310a4bad233.zip FreeBSD-src-dea228e37800fc07cb4619f31e155310a4bad233.tar.gz |
Catch up to the mtx_saveintr -> mtx_savecrit change.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_intr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c index ad64715..0113967 100644 --- a/sys/kern/kern_intr.c +++ b/sys/kern/kern_intr.c @@ -333,7 +333,7 @@ ithread_schedule(struct ithd *ithread, int do_switch) { struct int_entropy entropy; struct proc *p; - intrmask_t saveintr; + critical_t savecrit; /* * If no ithread or no handlers, then we have a stray interrupt. @@ -372,13 +372,13 @@ ithread_schedule(struct ithd *ithread, int do_switch) p->p_stat = SRUN; setrunqueue(p); if (do_switch && curproc->p_stat == SRUN) { - saveintr = sched_lock.mtx_saveintr; + savecrit = sched_lock.mtx_savecrit; mtx_intr_enable(&sched_lock); if (curproc != PCPU_GET(idleproc)) setrunqueue(curproc); curproc->p_stats->p_ru.ru_nvcsw++; mi_switch(); - sched_lock.mtx_saveintr = saveintr; + sched_lock.mtx_savecrit = savecrit; } else need_resched(); } else { |