10ms Round Robin scheduler (blank processes)
This commit is contained in:
@@ -188,7 +188,12 @@ struct cpu_status_t* interrupt_dispatch(struct cpu_status_t* context)
|
||||
case 32:
|
||||
//DEBUG("Timer Interrupt");
|
||||
ticks++;
|
||||
scheduler_schedule();
|
||||
if (ticks % SCHEDULER_QUANTUM == 0)
|
||||
{
|
||||
CLEAR_INTERRUPTS;
|
||||
scheduler_schedule();
|
||||
SET_INTERRUPTS;
|
||||
}
|
||||
// Send an EOI so that we can continue having interrupts
|
||||
outb(0x20, 0x20);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user