it's not clear that the release will always enable interrupts

This commit is contained in:
Robert Morris 2019-07-19 13:27:48 -04:00
parent dbd729b32d
commit 2418ac380c

View file

@ -418,12 +418,12 @@ scheduler(void)
{
struct proc *p;
struct cpu *c = mycpu();
// Let devices interrupt when no lock is held.
intr_on();
c->proc = 0;
for(;;){
// Let devices interrupt when no lock is held.
intr_on();
for(p = proc; p < &proc[NPROC]; p++) {
acquire(&p->lock);
if(p->state == RUNNABLE) {