diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-15 20:18:30 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-15 20:18:30 -0400 |
commit | 00aac70b23d3fb72ea0e5878a5edfc3a098f422f (patch) | |
tree | 8dbfbb3731d0d09dd08e3d907518fff8edaae40f /src/sys/arch | |
parent | 4c30aee5bf5763aee8086ca8f65fb62aa05d2c60 (diff) |
kern/amd64: proc: Don't dequeue procs in idle loop
There is no need to dequeue any processes in the idle loop as this
happens once per timer interrupt
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/arch')
-rw-r--r-- | src/sys/arch/amd64/os/os_proc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/sys/arch/amd64/os/os_proc.c b/src/sys/arch/amd64/os/os_proc.c index 2ca7ee4..23948ab 100644 --- a/src/sys/arch/amd64/os/os_proc.c +++ b/src/sys/arch/amd64/os/os_proc.c @@ -167,11 +167,6 @@ md_proc_idle(void) */ for (;;) { lapic_timer_oneshot_us(9000); - error = sched_deq(&core->scq, &proc); - if (error == 0) { - core->curproc = proc; - md_proc_kick(proc); - } __ASMV("sti; hlt"); } } |