diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-03-28 02:46:21 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-03-28 02:46:21 +0000 |
| commit | b944b9033a951dd2202bb5c7d6f304d5ea09199e (patch) | |
| tree | 925d6e22289c97e2e729af65dad305b29e564a0f /sys/kern/kern_intr.c | |
| parent | 35a472461a9878d41c8588aed731080efdc2ad24 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_intr.c')
| -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 ad64715ed9e1..011396772ec3 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 { |
