This commit is contained in:
Frans Kaashoek 2024-07-26 20:10:08 -04:00
parent 47cdb5f096
commit e5d80dfee5

View file

@ -473,6 +473,7 @@ scheduler(void)
release(&p->lock);
}
if(found == 0) {
// nothing to run; stop running on this core until an interrupt.
intr_on();
asm volatile("wfi");
}